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