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