예제 #1
0
        private void ShowLogItem_Click(object sender, EventArgs e)
        {
            LogForm f = new LogForm(controller, Logging.LogFilePath);

            f.Show();
            f.FormClosed += logForm_FormClosed;

            logForms.Add(f);
        }
 private void ShowLogForm()
 {
     if (logForm != null)
     {
         logForm.Activate();
     }
     else
     {
         logForm = new LogForm(controller, Logging.LogFilePath);
         logForm.Show();
         logForm.Activate();
         logForm.FormClosed += logForm_FormClosed;
     }
 }
예제 #3
0
 private void ShowGlobalLogForm()
 {
     if (logForm != null)
     {
         logForm.Activate();
         logForm.Update();
         if (logForm.WindowState == FormWindowState.Minimized)
         {
             logForm.WindowState = FormWindowState.Normal;
         }
     }
     else
     {
         logForm = new LogForm(controller);
         logForm.Show();
         logForm.Activate();
         logForm.BringToFront();
         logForm.FormClosed += globalLogForm_FormClosed;
     }
 }
예제 #4
0
        private void ShowLogForms()
        {
            if (logForms.Count == 0)
            {
                LogForm f = new LogForm(controller, Logging.LogFilePath);
                f.Show();
                f.FormClosed += logForm_FormClosed;

                logForms.Add(f);
                logFormsVisible = true;
            }
            else
            {
                logFormsVisible = !logFormsVisible;
                foreach (LogForm f in logForms)
                {
                    f.Visible = logFormsVisible;
                }
            }
        }
예제 #5
0
 void globalLogForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logForm = null;
     Util.Utils.ReleaseMemory();
 }
 void logForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logForm.Dispose();
     logForm = null;
     Utils.ReleaseMemory(true);
 }
        private void ShowLogItem_Click(object sender, EventArgs e)
        {
            LogForm f = new LogForm(controller, Logging.LogFilePath);
            f.Show();
            f.FormClosed += logForm_FormClosed;

            logForms.Add(f);
        }
        private void ShowLogForms()
        {
            if (logForms.Count == 0)
            {
                LogForm f = new LogForm(controller, Logging.LogFilePath);
                f.Show();
                f.FormClosed += logForm_FormClosed;

                logForms.Add(f);
                logFormsVisible = true;
            }
            else
            {
                logFormsVisible = !logFormsVisible;
                foreach (LogForm f in logForms)
                {
                    f.Visible = logFormsVisible;
                }
            }
        }
예제 #9
0
 private void ShowLogForm()
 {
     if (logForm != null)
     {
         logForm.Activate();
     }
     else
     {
         logForm = new LogForm(controller, Logging.LogFilePath);
         logForm.Show();
         logForm.Activate();
         logForm.FormClosed += logForm_FormClosed;
     }
 }
예제 #10
0
 void logForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logForm.Dispose();
     logForm = null;
     Utils.ReleaseMemory(true);
 }
 void logForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logForm.Dispose();
     logForm = null;
 }