示例#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;
 }