Example #1
0
 private void tsPatientInvoice_Click(object sender, EventArgs e)
 {
     if (invoice == null)
     {
         invoice             = new frmPatientInvoice();
         invoice.MdiParent   = this;
         invoice.FormClosed += new FormClosedEventHandler(invoice_FormClosed);
         invoice.Show();
     }
     else
     {
         invoice.Activate();
         invoice.WindowState = FormWindowState.Normal;
     }
 }
Example #2
0
 void invoice_FormClosed(object sender, FormClosedEventArgs e)
 {
     invoice = null;
 }