Ejemplo n.º 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();
     }
 }
Ejemplo n.º 2
0
 private void scForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     scForm = null;
 }