Inheritance: System.Windows.Forms.Form
 void configForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     configForm = null;
     Util.Utils.ReleaseMemory();
     ShowFirstTimeBalloon();
 }
 private void ShowConfigForm()
 {
     if (configForm != null)
     {
         configForm.Activate();
     }
     else
     {
         configForm = new ConfigForm(controller);
         configForm.Show();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
 void configForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     configForm = null;
     Utils.ReleaseMemory(true);
     if (_isFirstRun)
     {
         CheckUpdateForFirstRun();
         ShowFirstTimeBalloon();
         _isFirstRun = false;
     }
 }
 private void ShowConfigForm()
 {
     if (configForm != null)
     {
         configForm.Activate();
     }
     else
     {
         configForm = new ConfigForm(controller, updateChecker);
         configForm.Show();
         configForm.Activate();
         configForm.BringToFront();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
 private void Quit_Click(object sender, EventArgs e)
 {
     controller.Stop();
     if (configForm != null)
     {
         configForm.Close();
         configForm = null;
     }
     if (serverLogForm != null)
     {
         serverLogForm.Close();
         serverLogForm = null;
     }
     if (timerDelayCheckUpdate != null)
     {
         timerDelayCheckUpdate.Elapsed -= timer_Elapsed;
         timerDelayCheckUpdate.Stop();
         timerDelayCheckUpdate = null;
     }
     _notifyIcon.Visible = false;
     Application.Exit();
 }
Example #6
0
 void configForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     configForm = null;
     Util.Utils.ReleaseMemory();
 }
Example #7
0
 void configForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     configForm = null;
     Util.Utils.ReleaseMemory();
     ShowFirstTimeBalloon();
 }
 private void ShowConfigForm()
 {
     if (configForm != null)
     {
        // configForm.Deactivate(new EventHandler());
         configForm.Show();
     }
     else
     {
         configForm = new ConfigForm(controller, null);
         //configForm.
         configForm.Show();
         configForm.FormClosed += configForm_FormClosed;
     }
 }
 public void initialize(MenuViewController menu)
 {
     configForm = new ConfigForm(controller, menu);
     configForm.Show();
     configForm.Hide();
 }