SVN r251
SVN-Revision: r251
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Lskj.GetSecretKey
|
||||
}
|
||||
if (isSave)
|
||||
{
|
||||
DBConfig.Instance.WriteConfig();
|
||||
//DBConfig.Instance.WriteConfig();
|
||||
string args = AESUtil.Encrypt(txtServerName.Text + "^" + txtDBName.Text + "^" + LoginName.Text + "^" + LoginPwd.Text + "^" + (string.IsNullOrEmpty(txtDays.Text) ? "0" : txtDays.Text));
|
||||
string file = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SystemResources.txt");
|
||||
//创建文件
|
||||
@@ -145,35 +145,4 @@ namespace Lskj.GetSecretKey
|
||||
if (File.Exists(file))
|
||||
{
|
||||
string args = AESUtil.Decrypt(File.ReadAllText(file));
|
||||
string[] controlAfgs = args.Split('^');
|
||||
if (controlAfgs != null && controlAfgs.Length == 5)
|
||||
{
|
||||
txtServerName.Text = controlAfgs[0];
|
||||
txtDBName.Text = controlAfgs[1];
|
||||
LoginName.Text = controlAfgs[2];
|
||||
LoginPwd.Text = controlAfgs[3];
|
||||
txtDays.Text = controlAfgs[4];
|
||||
}
|
||||
}
|
||||
}
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
private void OnKeysDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
TextEdit txtEdit = (TextEdit)sender;
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
{
|
||||
if (txtEdit.Name.Equals("LoginPwd"))
|
||||
{
|
||||
this.OnSetPanel_Click(sender, e);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendKeys.Send("{Tab}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stri
|
||||
Reference in New Issue
Block a user