/// <summary> /// Button click events /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddAssessment_Click(object sender, EventArgs e) { try { if (patient == null || patient.PatientId == 0) { throw new Exception("Invalid patient"); } RangeOfMotion rangeOfMotion = new RangeOfMotion(this, true, 0, patient.PatientId); rangeOfMotion.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnViewAssessment_Click(object sender, EventArgs e) { try { if (patient == null || patient.PatientId == 0) { throw new Exception("Invalid patient"); } if (selectedAssessmentId == 0) { throw new Exception("Select assessment to view"); } RangeOfMotion rangeOfMotion = new RangeOfMotion(this, false, selectedAssessmentId, patient.PatientId); rangeOfMotion.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// Click button trigger events /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnAddAssesment_Click(object sender, EventArgs e) { RangeOfMotion app = new RangeOfMotion(this); app.ShowDialog(); }