예제 #1
0
 private void btnAddNewProcedure_Click(object sender, EventArgs e)
 {
     try
     {
         frmProcedures fp = new frmProcedures(600, 500);
         //fp.MdiParent = this.MdiParent;
         fp.ShowDialog(this);
         cmbProcedure.DataSource = objCD.ProceduresCombo(0);
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
예제 #2
0
 private void menuItemProc_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmProcedures>().Count() == 1)
         {
             Application.OpenForms.OfType <frmProcedures>().First().BringToFront();
         }
         else
         {
             frmProcedures frm = new frmProcedures();
             frm.MdiParent = this;
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }