예제 #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();
            }
        }
예제 #3
0
 void invapp_FormClosed(object sender, FormClosedEventArgs e)
 {
     invapp = null;
 }
예제 #4
0
 void ia_FormClosed(object sender, FormClosedEventArgs e)
 {
     ia = null;
 }