예제 #1
0
 private void searchFromPeopleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (spForm == null)
     {
         spForm = new SearchPeople
         {
             MdiParent = this
         };
         spForm.FormClosed += new FormClosedEventHandler(spForm_FormClosed);
         spForm.Show();
     }
     else
     {
         spForm.Activate();
     }
 }
예제 #2
0
 private void spForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     spForm = null;
 }