Exemple #1
0
 /// <summary>
 /// Calls frmProductCreation form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void productCreationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         frmProductCreation frm = new frmProductCreation();
         frmProductCreation open = Application.OpenForms["frmProductCreation"] as frmProductCreation;
         if (open == null)
         {
             frm.MdiParent = this;
             frm.Show();
         }
         else
         {
             open.Activate();
             if (open.WindowState == FormWindowState.Minimized)
             {
                 open.WindowState = FormWindowState.Normal;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MDI 90 : " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }