Пример #1
0
 private void menuLogin_Click(object sender, EventArgs e)
 {
     if (frmLogin == null)
     {
         frmLogin             = new FormLogin();
         frmLogin.FormClosed += new FormClosedEventHandler(frmLogin_fromClosed);
         frmLogin.ShowDialog();
     }
     else
     {
         frmLogin.Activate();
     }
 }
Пример #2
0
 void frmLogin_fromClosed(object sender, FormClosedEventArgs e)
 {
     frmLogin = null;
 }