public LoginForm() { //Sunisoft.IrisSkin.SkinEngine se = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this))); //se.SkinFile = Application.StartupPath + "//Skins//XPBlue.ssk"; //se.SkinAllForm = true; InitializeComponent(); int runCount = int.Parse(ConfigurationManager.AppSettings.Get("runCount")); if (runCount == 0) { RestoreDataFrm rdf = new RestoreDataFrm(); rdf.initDB(); initAdmin(); } if (runCount < 999) { cfa.AppSettings.Settings["runCount"].Value = (runCount + 1).ToString(); cfa.Save(); } txtUser.Text = ConfigurationManager.AppSettings.Get("lastUser"); txtPwd.Text = Maticsoft.Common.PasswordEncrypt.DecryptDES(ConfigurationManager.AppSettings.Get("lastUserPwd")); if (txtPwd.Text != "") { chkbxRmbrPwd.Checked = true; } }
private void 重置数据库ToolStripMenuItem_Click(object sender, EventArgs e) { RestoreDataFrm rdf = new RestoreDataFrm(); rdf.ShowDialog(); }