Пример #1
0
 private void SProfile_Click(object sender, EventArgs e)
 {
     dn = new FormDangNhap();
     if (!CheckExitsForm("FormQuenMatKhau"))
     {
         FormQuenMatKhau profileNV = new FormQuenMatKhau(FormMain.mail);
         profileNV.MdiParent   = this;
         profileNV.FormClosed += new FormClosedEventHandler(FormQuenMatKhau_FormClosed);
         profileNV.Show();
     }
     else
     {
         ActiveChildForm("FormQuenMatKhau");
     }
 }
Пример #2
0
 private void SDangNhap_Click(object sender, EventArgs e)
 {
     //Visible = false;
     //ShowInTaskbar = false;
     //FormDangNhap frmDangNhapN = new FormDangNhap();
     //frmDangNhapN.Activate();
     //frmDangNhapN.Show();
     dn = new FormDangNhap();
     if (!CheckExitsForm("FormDangNhap"))
     {
         dn.MdiParent = this;
         dn.Show();
         dn.FormClosed += new FormClosedEventHandler(FormDangNhap_FormClosed);
     }
     else
     {
         ActiveChildForm("FormDangNhap");
     }
 }