using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Configuration;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace SiemensWCS
|
{
|
/*
|
PassConfirm pc = new PassConfirm(new Action(delegate
|
{
|
#region 业务操作
|
|
|
|
#endregion
|
}));
|
pc.Show();
|
*/
|
public partial class PassConfirm : Form
|
{
|
Action Call;
|
public PassConfirm(Action ClickCall)
|
{
|
Call = ClickCall;
|
InitializeComponent();
|
}
|
|
private void PassConfirm_Load(object sender, EventArgs e)
|
{
|
|
}
|
|
private void button1_Click(object sender, EventArgs e)
|
{
|
if (textBox1.Text == ConfigurationManager.AppSettings["passwd"])
|
{
|
Call.Invoke();
|
}
|
Close();
|
}
|
|
private void button2_Click(object sender, EventArgs e)
|
{
|
Close();
|
}
|
}
|
}
|