private void tsbBill_Click(object sender, EventArgs e)
 {
     InvoiceForm invForm = new InvoiceForm(m_patient.patID, true);
     invForm.MdiParent = MainParent.MainMDIParent;
     invForm.Show();
 }
 private void viewInvoice()
 {
     InvoiceForm frmInvoice = new InvoiceForm(m_selectedID);
     frmInvoice.MdiParent = MdiParent;
     frmInvoice.Show();
 }
 private void tsbBilling_Click(object sender, EventArgs e)
 {
     if (!checkForActiveDoctors())
     {
         return;
     }
     InvoiceForm frmInvoice = new InvoiceForm();
     frmInvoice.MdiParent = this;
     frmInvoice.Show();
 }
 private void cmiCreateBill_Click(object sender, EventArgs e)
 {
     Database.appointment app = m_appMgr.getAppointment(dvAppointments.SelectedAppointment.AppointmentID);
     int patID = (int)app.patID;
     int itryID = (int)app.itryID;
     InvoiceForm invFrm = new InvoiceForm(patID, itryID);
     DialogResult r = invFrm.ShowDialog();
     if (r == DialogResult.OK)
     {
         changeAppStatus(2);
     }
     m_appMgr.updateAppointment();
     updateFormData();
 }