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; } }
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; } }
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; } } }
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); }
void logForm_FormClosed(object sender, FormClosedEventArgs e) { logForm.Dispose(); logForm = null; }