/// <summary> /// Reset button click resets info and unchecks all data /// This also reloads the report_config.json file in case there are any changes /// //Allows for real-time update of report lists for medications and conditions /// </summary> public void ResetClick() { //Reset all values and gets the data from the report config file again in case there was a change //Allows for real-time update of report lists for medications and conditions AdditionalCommentsForReportBox = ""; ConditionList.Clear(); MedicationList.Clear(); reportModel = jSONService?.GetReportModelFromFile(reportFilePath); if (reportModel == null) { return; } GetListOfMedicationsConditionsFromModel(); }
public ReportWindowViewModel(ref SummitSystem theSummitLeft, ref SummitSystem theSummitRight, ILog _log) { this._log = _log; this.theSummitLeft = theSummitLeft; this.theSummitRight = theSummitRight; jSONService = new JSONService(_log); //Medication and Condition list for report window. //Both of these collection data come from the same json file MedicationList = new ObservableCollection <MedicationCheckBoxClass>(); ConditionList = new ObservableCollection <ConditionCheckBoxClass>(); //These two methods are implemented in ReportViewModel.cs reportModel = jSONService?.GetReportModelFromFile(reportFilePath); if (reportModel == null) { return; } GetListOfMedicationsConditionsFromModel(); }