public void NewPatientMenu(int pathology) { Random rand = new Random(); if (programMode == ProgramMode.Eval) { pt.NewPatient(rand.Next(12)); // clear the plateaut plot and audiogram pplot.ClearAll(); adgrm.Clear_Graph(); // reset the show path button resultsShow.Visible = false; resultsHidePath.Visible = false; evalOutput = new EvalOutput(pt.path); menuNewPat.Enabled = false; resultsSave.Enabled = true; } else { int pathTypeChoosen = pathology; PathologySelector pS = new PathologySelector(); if (pathology == -1 && pS.ShowDialog() == DialogResult.OK) { pathTypeChoosen = pS.pathBox.SelectedIndex - 1; } // Modified by Matt Harris 9/16/2011 // to fix random pathology bug where a patient wasn't // being shown if (pathTypeChoosen < 0) pathTypeChoosen = rand.Next(12); pt.NewPatient(pathTypeChoosen); // clear the plateaut plot and audiogram pplot.ClearAll(); adgrm.Clear_Graph(); // reset the show path button resultsShow.Visible = true; resultsHidePath.Visible = false; ptwind.SetText(pt.GetPath().PathType); } chf.Dispose(); chf = new CaseHistoryForm(); chf.FillCaseHistory(pt.GetPath().CaseHist); chf.Show(); // show the new patient ptwind.ShowPatient(pt.returnPatientType()); patientStartTime = DateTime.Now; menuSpeechAudiometry.Enabled = true; adgrm.HideSpeechResults(); }
private void menuShowCaseHistory_Click(object sender, System.EventArgs e) { if (pt.validPatient) { chf.Dispose(); chf = new CaseHistoryForm(); chf.FillCaseHistory(pt.GetPath().CaseHist); chf.Show(); } }
/// <summary> /// Use this method to show case history infomation to the user /// </summary> private void showCaseHistory() { chf = new CaseHistoryForm(); chf.FillCaseHistory(path.CaseHist); chf.Show(); }