private void _LogForm_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.ApplicationExitCall) { return; } _logForm.Hide(); e.Cancel = true; }
public GuiLogger() { form = new LogForm(); form.FormClosing += delegate(object sender, FormClosingEventArgs e) { form.Clear(); form.Hide(); e.Cancel = true; }; NewLogEntry += OnNewLogEntry; }
private void InitializeLog() { _log = new LogForm(); _log.Show(); _log.Hide(); }