You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
956 B
42 lines
956 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PunchAndWeld
|
|
{
|
|
public partial class FrmPassWord : Form
|
|
{
|
|
public event Action<string> OkBtnClick;
|
|
|
|
public FrmPassWord()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btnOk_Click(object sender, EventArgs e)
|
|
{
|
|
if (string.IsNullOrEmpty(txtPass.Text))
|
|
{
|
|
MessageBox.Show("请输入密码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
txtPass.Focus();
|
|
return;
|
|
}
|
|
|
|
if (OkBtnClick != null)
|
|
{
|
|
OkBtnClick(txtPass.Text);
|
|
}
|
|
|
|
}
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|
|
|