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()); } }
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()); } }
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()); } }