Example #1
0
 private void ShowNewMainForm()
 {
     if (newMainForm != null)
     {
         newMainForm.Activate();
         newMainForm.Update();
         if (newMainForm.WindowState == FormWindowState.Minimized)
         {
             newMainForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         newMainForm = new NewMainForm(controller);
         newMainForm.Show();
         newMainForm.Activate();
         newMainForm.BringToFront();
         newMainForm.FormClosed += newMainForm_FormClosed;
     }
 }
Example #2
0
 void newMainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     newMainForm = null;
 }