예제 #1
0
 void CreateHistoryForm()
 {
     historyForm              = new HistoryForm();
     historyForm.Shown       += (s, e) => historyToolStripMenuItem.Checked = true;
     historyForm.FormClosing += (s, e) =>
     {
         e.Cancel = true;
         historyForm.Hide();
         historyToolStripMenuItem.Checked = false;
     };
 }
예제 #2
0
        private void historyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (historyForm.Visible)
            {
                historyForm.Hide();
            }
            else
            {
                historyForm.Show();
            }

            historyToolStripMenuItem.Checked = historyForm.Visible;
        }
예제 #3
0
 void CreateHistoryForm()
 {
     historyForm = new HistoryForm();
     historyForm.Shown += (s, e) => historyToolStripMenuItem.Checked = true;
     historyForm.FormClosing += (s, e) =>
     {
         e.Cancel = true;
         historyForm.Hide();
         historyToolStripMenuItem.Checked = false;
     };
 }