private void ShowServerLogForm()
 {
     if (serverLogForm != null)
     {
         serverLogForm.Activate();
         serverLogForm.Update();
     }
     else
     {
         serverLogForm = new ServerLogForm(controller);
         serverLogForm.Show();
         serverLogForm.FormClosed += serverLogForm_FormClosed;
     }
 }
Пример #2
0
 private void Quit_Click(object sender, EventArgs e)
 {
     controller.Stop();
     if (configForm != null)
     {
         configForm.Close();
         configForm = null;
     }
     if (serverLogForm != null)
     {
         serverLogForm.Close();
         serverLogForm = null;
     }
     _notifyIcon.Visible = false;
     Application.Exit();
 }
Пример #3
0
 private void ShowServerLogForm()
 {
     if (serverLogForm != null)
     {
         serverLogForm.Activate();
         serverLogForm.Update();
         if (serverLogForm.WindowState == FormWindowState.Minimized)
         {
             serverLogForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         serverLogForm = new ServerLogForm(controller);
         serverLogForm.Show();
         serverLogForm.Activate();
         serverLogForm.BringToFront();
         serverLogForm.FormClosed += serverLogForm_FormClosed;
     }
 }
Пример #4
0
 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();
 }
Пример #5
0
 void serverLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     serverLogForm = null;
 }
 private void ShowServerLogForm()
 {
     if (serverLogForm != null)
     {
         serverLogForm.Activate();
         serverLogForm.Update();
     }
     else
     {
         serverLogForm = new ServerLogForm(controller);
         serverLogForm.Show();
         serverLogForm.FormClosed += serverLogForm_FormClosed;
     }
 }
 void serverLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     serverLogForm = null;
 }
Пример #8
0
 void serverLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     serverLogForm = null;
     Util.Utils.ReleaseMemory();
 }
 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();
 }