Пример #1
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     try
     {
         frmInvoice frmID = new frmInvoice();
         frmID.ShowDialog();
         this.Hide();
     }
     catch
     {
     }
 }
Пример #2
0
        private void M_INVOICE_Click(object sender, EventArgs e)
        {
            try
            {
                Form[] activeChild = this.MdiChildren;

                if (activeChild.Length == 0)
                {
                    frmInvoice frmID = new frmInvoice();
                    frmID.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }