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();
}
///
/// 点击确定按钮
///
///
///
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;
}
///
/// 点击取消按钮
///
///
///
private void btn_cancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
}
}