Ejemplo n.º 1
0
 public static FrmManage GetInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         lock (syncRoot)
         {
             if (instance == null || instance.IsDisposed)
             {
                 instance = new FrmManage();
             }
         }
     }
     return instance;
 }
Ejemplo n.º 2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (CommonHelper.CheckPw(txtPw.Text))
     {
         //sh.CloseRec();
         this.Hide();
         FrmManage fm = new FrmManage();
         fm.Show();
     }
     else
     {
         this.errorProvider1.SetError(this.txtPw, "登录密码输入错误,请重新输入!");
         txtPw.Focus();
     }
 }