Ejemplo n.º 1
0
 private void Login_Load(object sender, EventArgs e)
 {
     //MessageBox.Show(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
     this.Icon = Properties.Resources.TSS;
     //加载系统默认配置
     if (ConfigUtils.LoadConfigFile() == false)
     {
         ConfigSet c = new ConfigSet();
         c.ShowDialog(this);
     }
     AdminConfigFile = ConfigUtils.DataFileSavePath + @"\" + FilePathUtils.LOCAL_CFG + FilePathUtils.LOCAL_ADMIN_SYS + FilePathUtils.LOCAL_FILE_TYPE;
     if (File.Exists(AdminConfigFile) == false)//第一次使用
     {
     }
     else
     {
         this.Password.Text  = "请输入密码";
         this.UserID.Visible = false;
         PasswordConfig      = File.ReadAllText(AdminConfigFile);
         //加载系统配置信息
         ConfigUtils.LoadSysConfig();
     }
 }
Ejemplo n.º 2
0
        private void ConfigBTN_Click(object sender, EventArgs e)
        {
            ConfigSet c = new ConfigSet();

            c.ShowDialog(this);
        }