Пример #1
0
 private void ShowAccountForm()
 {
     if (accountForm != null)
     {
         accountForm.Activate();
         accountForm.Update();
         if (accountForm.WindowState == FormWindowState.Minimized)
         {
             accountForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         accountForm = new AccountForm(controller);
         accountForm.Show();
         accountForm.Activate();
         accountForm.BringToFront();
         accountForm.FormClosed += accountForm_FormClosed;
     }
 }
Пример #2
0
 void accountForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     accountForm = null;
     Util.Utils.ReleaseMemory();
 }