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