Пример #1
0
 private void menuitemBillingReport_Click(object sender, EventArgs e)
 {
     try
     {
         frmRptBilling rep = new frmRptBilling();
         rep.MdiParent = this;
         rep.Show();
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Пример #2
0
 private void btnBillingRpt_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmRptBilling>().Count() == 1)
         {
             Application.OpenForms.OfType <frmRptBilling>().First().BringToFront();
         }
         else
         {
             frmRptBilling frm = new frmRptBilling();
             frm.MdiParent = this.MdiParent;
             frm.Show();
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }
Пример #3
0
 private void menuitemBillingReport_Click(object sender, EventArgs e)
 {
     try
     {
         if (Application.OpenForms.OfType <frmRptBilling>().Count() == 1)
         {
             Application.OpenForms.OfType <frmRptBilling>().First().BringToFront();
         }
         else
         {
             frmRptBilling rep = new frmRptBilling();
             rep.MdiParent = this;
             rep.Show();
             rep.WindowState = FormWindowState.Maximized;
         }
     }
     catch (Exception ex)
     {
         CommonLogger.Info(ex.ToString());
     }
 }