You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using CompressorXN.Untils;
|
|
using CompressorXN_Common;
|
|
using Custom.Utils.Framework;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CompressorXN
|
|
{
|
|
public partial class FrmUnlock : Form
|
|
{
|
|
public FrmUnlock()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 点击确定按钮
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void btn_Sure_Click(object sender, EventArgs e)
|
|
{
|
|
//string pwd = txt_Pwd.Text;
|
|
//if (string.IsNullOrEmpty(pwd))
|
|
//{
|
|
// new FrmDialog("请输入密码!").ShowDialog();
|
|
// return;
|
|
//}
|
|
//string secretKey = DesHelper.EncryptStringToBytes_Aes(pwd);
|
|
//string unlockPwd = IniHelper.Read("UnlockPwd", "UserPwd", "", GlobalVar.IniFilePath);
|
|
//if (secretKey != unlockPwd)
|
|
//{
|
|
// new FrmDialog("密码错误!").ShowDialog();
|
|
// return;
|
|
//}
|
|
DialogResult = DialogResult.OK;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 点击取消按钮
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void btn_cancel_Click(object sender, EventArgs e)
|
|
{
|
|
DialogResult = DialogResult.Cancel;
|
|
}
|
|
}
|
|
}
|