Esempio n. 1
0
 private void tspUseMod_Click(object sender, EventArgs e)
 {
     if (!checkForOpenForm("ManagePatientsForm"))
     {
         ManagePatientsForm frmMangage = new ManagePatientsForm();
         frmMangage.MdiParent = this;
         frmMangage.Show();
     }
 }
Esempio n. 2
0
 ///// <summary>
 ///// Prevents previously saved invoices from being modified
 ///// </summary>
 //private void enableReadOnlyMode()
 //{
 //    btnSearch.Enabled = false;
 //    dgvInvoice.ReadOnly = true;
 //    dgvInvoice.AllowUserToAddRows = false;
 //    dgvInvoice.AllowUserToDeleteRows = false;
 //    tsbAddItem.Enabled = false;
 //    tsbRemoveRow.Enabled = false;
 //    cbDoctor.Enabled = false;
 //}
 private void btnSearch_Click(object sender, EventArgs e)
 {
     ManagePatientsForm frmPat = new ManagePatientsForm(true);
     DialogResult r = frmPat.ShowDialog(this);
     if (r == DialogResult.OK)
     {
         selectPatient(frmPat.SelectedID);
         cbDoctor.SelectedValue = m_currentPatient.docID;
     }
 }
Esempio n. 3
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     ManagePatientsForm frmPat = new ManagePatientsForm(true);
     DialogResult r = frmPat.ShowDialog();
     if(r == DialogResult.OK)
     {
         selectPatient(frmPat.SelectedID);
     }
 }