Пример #1
0
 private void invoiceProcessingToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (invapp == null)
     {
         invapp             = new invoiceApproval();
         invapp.MdiParent   = this;
         invapp.FormClosed += new FormClosedEventHandler(invapp_FormClosed);
         invapp.Show();
         //this.Close();
     }
     else
     {
         ALLPO.Activate();
     }
 }
Пример #2
0
        private void approvecmd_Click(object sender, EventArgs e)
        {
            invoiceid = Convert.ToString(invoicetxt.Text.Trim());

            if (ia == null)
            {
                ia             = new invoiceApproval();
                ia.MdiParent   = this.MdiParent;
                ia.FormClosed += new FormClosedEventHandler(ia_FormClosed);
                ia.Show();
                //this.Close();
            }
            else
            {
                ia.Activate();
                ia.FormClosed += new FormClosedEventHandler(ia_FormClosed);
                ia.Show();
            }
        }