43 lines
928 B
C#
43 lines
928 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace JY.Inspection.Frm
|
|
{
|
|
public partial class FrmPwd : Form
|
|
{
|
|
public FrmPwd()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void FrmPwd_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void btOK_Click(object sender, EventArgs e)
|
|
{
|
|
if (txtPwd.Text.ToLower().Trim() == "eve@2022")
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
else
|
|
{
|
|
MessageBox.Show("输入的密码不正确!");
|
|
}
|
|
}
|
|
|
|
private void btExit_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
}
|
|
}
|
|
}
|