Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        private void 重置数据库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RestoreDataFrm rdf = new RestoreDataFrm();

            rdf.ShowDialog();
        }