private void tspUseMod_Click(object sender, EventArgs e) { if (!checkForOpenForm("ManagePatientsForm")) { ManagePatientsForm frmMangage = new ManagePatientsForm(); frmMangage.MdiParent = this; frmMangage.Show(); } }
///// <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; } }
private void btnSearch_Click(object sender, EventArgs e) { ManagePatientsForm frmPat = new ManagePatientsForm(true); DialogResult r = frmPat.ShowDialog(); if(r == DialogResult.OK) { selectPatient(frmPat.SelectedID); } }