Пример #1
0
 private void selectedEventToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.selectedEventForm == null)
     {
         this.selectedEventForm             = new SelectedEventForm();
         this.selectedEventForm.MdiParent   = this;
         this.selectedEventForm.FormClosed += new FormClosedEventHandler(this.selectedEventForm_FormClosed);
         this.selectedEventForm.Show();
     }
     else
     {
         this.selectedEventForm.Activate();
     }
 }
Пример #2
0
 private void selectedEventForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.selectedEventForm = null;
 }
Пример #3
0
 private void selectedEventToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.selectedEventForm == null)
     {
         this.selectedEventForm = new SelectedEventForm();
         this.selectedEventForm.MdiParent = this;
         this.selectedEventForm.FormClosed += new FormClosedEventHandler(this.selectedEventForm_FormClosed);
         this.selectedEventForm.Show();
     }
     else
     {
         this.selectedEventForm.Activate();
     }
 }
Пример #4
0
 private void selectedEventForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.selectedEventForm = null;
 }