38 lines
1016 B
C#
38 lines
1016 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
using UI.Framework.Forms;
|
|
|
|
namespace Grant.Framework
|
|
{
|
|
public partial class VerifyPassForm : BaseForm
|
|
{
|
|
public VerifyPassForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(textBox2.Text)) throw new Exception("密码不能为空");
|
|
if (this.textBox2.Text != Grant.Framework.GrantClient.Get().accounts.userpass) throw new Exception("抱歉,身份验证失败!");
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
ShowError(ex);
|
|
}
|
|
|
|
this.Close();
|
|
}
|
|
}
|
|
} |