예제 #1
0
 private void btnRegister_Click(object sender, EventArgs e)
 {
     try
     {
         frmPatient frm = new frmPatient();
         frm.MdiParent = this.ParentForm;
         frm.Show();
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
예제 #2
0
 private void btnReg_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmPatient>().Count() == 1)
         {
             Application.OpenForms.OfType <frmPatient>().First().BringToFront();
         }
         else
         {
             frmPatient frm = new frmPatient();
             frm.MdiParent = this;
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
예제 #3
0
 private void menuItemPatSearch_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmPatient>().Count() == 1)
         {
             Application.OpenForms.OfType <frmPatient>().First().BringToFront();
         }
         else
         {
             frmPatient frm = new frmPatient(1);
             frm.MdiParent = this;
             frm.Show();
             frm.WindowState = FormWindowState.Maximized;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }