Пример #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;
 }