private void ReloadParent() { try { using (frmInvoice frm = new frmInvoice()) { frm.MdiParent = this.MdiParent; frm.ShowDialog(); this.Close(); } } catch (Exception ex) { _errorLogs.LogErrors("frmInvoice", "ReloadParent", ex.Message); } }
private void invoiceToolStripMenuItem1_Click(object sender, EventArgs e) { try { //this.IsMdiContainer = true; using (frmInvoice frmInv = new frmInvoice()) { frmInv.MdiParent = this.MdiParent; frmInv.ShowDialog(); } } catch (Exception ex) { _errorLogs.LogErrors("Parent", "invoiceToolStripMenuItem1_Click", ex.Message); } }