コード例 #1
0
 private void personListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (plForm == null)
     {
         plForm = new PeopleList
         {
             MdiParent = this
         };
         plForm.FormClosed += new FormClosedEventHandler(plForm_FormClosed);
         plForm.Show();
     }
     else
     {
         plForm.Activate();
     }
 }
コード例 #2
0
 private void plForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     plForm = null;
 }