Example #1
0
 private void menuItemMedType_Click(object sender, EventArgs e)
 {
     try
     {
         frmMedicineTypes fdc = new frmMedicineTypes();
         fdc.MdiParent = this;
         fdc.Show();
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Example #2
0
 private void btnDashMedType_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmMedicineTypes>().Count() == 1)
         {
             Application.OpenForms.OfType <frmMedicineTypes>().First().BringToFront();
         }
         else
         {
             frmMedicineTypes frm = new frmMedicineTypes();
             frm.MdiParent = this.MdiParent;
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Example #3
0
 private void menuItemMedType_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmMedicineTypes>().Count() == 1)
         {
             Application.OpenForms.OfType <frmMedicineTypes>().First().BringToFront();
         }
         else
         {
             frmMedicineTypes fdc = new frmMedicineTypes();
             fdc.MdiParent = this;
             fdc.Show();
             fdc.WindowState = FormWindowState.Maximized;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }