public AssessmentVM() { PredictionAndRealFalls = AssessmentAndlFallsVM.Instance; CurrentModel = new ManageFallPredictionModel(); Assessments = new ObservableCollection <Assessment>(CurrentModel.AllAssessments()); // FallPredictions = CurrentModel.AllFallPrediction(); Assessments.CollectionChanged += Assessment_CollectionChanged; }
public ReportVM() { AssessmentAndRealFalls = AssessmentAndlFallsVM.Instance; CurrentModel = new ManageFallReportModel(); Reports = new ObservableCollection <Report>(CurrentModel.AllFallReports()); Add = new AddReportCommand(this); Reports.CollectionChanged += Reports_CollectionChanged; }