コード例 #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;
 }