Beispiel #1
0
 private void ShowLogFrom_Click(object sender, EventArgs e)
 {
     if ((_frmLog == null) || (!_frmLog.Visible))
     {
         _frmLog = new frmLogging();
         _frmLog.Show();
     }
 }
Beispiel #2
0
        private void loggingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (loggingToolStripMenuItem.Checked)
            {
                loggingForm.Close();
                loggingForm = null;
            }
            else
            {
                if (loggingForm == null)
                {
                    loggingForm = new frmLogging();
                    loggingForm.Show(dockPanel, DockState.DockBottom);
                    Log("Loading Logging Window");
                }
            }

            loggingToolStripMenuItem.Checked = !loggingToolStripMenuItem.Checked; // Toggle the check state
        }