예제 #1
0
 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);
     }
 }
예제 #2
0
파일: Parent.cs 프로젝트: SPG-Emad/Invoice
 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);
     }
 }