Example #1
0
 private void ShowPortMapForm()
 {
     if (portMapForm != null)
     {
         portMapForm.Activate();
         portMapForm.Update();
         if (portMapForm.WindowState == FormWindowState.Minimized)
         {
             portMapForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         portMapForm = new PortSettingsForm(controller);
         portMapForm.Show();
         portMapForm.Activate();
         portMapForm.BringToFront();
         portMapForm.FormClosed += portMapForm_FormClosed;
     }
 }
Example #2
0
 void portMapForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     portMapForm = null;
 }
Example #3
0
 void portMapForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     portMapForm = null;
     Util.Utils.ReleaseMemory();
 }