private void addDiagnosis_btn_Click(object sender, EventArgs e) { if (!IVLVariables.ivl_Camera.IsCapturing) { IVLVariables.IsAnotherWindowOpen = true; DiagnosisForm d = new DiagnosisForm(); d.ShowDialog(); } }
private void btnViewPatientDiagnoses_Click(object sender, EventArgs e) { if (this.patientDataGridView.SelectedRows.Count == 0) { MessageBox.Show(this, Resources.MainForm_buttonAddAppointment_Click_Please_select_a_user, Resources.MainForm_buttonAddAppointment_Click_Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } else { var patientId = ((Patient)this.patientDataGridView.SelectedRows[0].DataBoundItem).PatientId; var patientDiagnosis = new DiagnosisForm(patientId); patientDiagnosis.ShowDialog(); } }
private void btnDiagnosis_Click(object sender, EventArgs e) { if (this.dgvAppointment.SelectedRows.Count == 0) { MessageBox.Show(this, Resources .ViewAppointmentForm_btnDiagnosis_Click_Please_select_an_appointment_to_add_update_diagnosis_to, Resources.ViewAppointmentForm_buttonCheckIn_Click_Error, MessageBoxButtons.OK, MessageBoxIcon.Error); } else { var appt = (Appointment)this.dgvAppointment.SelectedRows[0].DataBoundItem; var diagnosisForm = new DiagnosisForm(appt); diagnosisForm.ShowDialog(); this.updateTable(); } }
private void diagnosisListToolStripMenuItem_Click(object sender, EventArgs e) { var diaForm = new DiagnosisForm(); diaForm.Show(); }