public FallsVM() { PredictionAndRealFalls = PredictionAndRealFallsVM.Instance; openImageCommand = new OpenImageCommand(); CurrentModel = new ManageFallsModel(); Add = new AddFallCommand(this); Falls = new ObservableCollection <Fall>(CurrentModel.AllFalls()); Falls.CollectionChanged += Falls_CollectionChanged; }
public FallVM() { Search = new SearchFallCommand(); CurrentModel = new ManageFallsModel(); Falls = new ObservableCollection <Fall>(CurrentModel.db.falls); addFallCommand = new AddFallCommand(); addFallCommand.AddFallNeeded += AddFallCommand_AddFallNeeded; Falls.CollectionChanged += Falls_CollectionChanged; }
public AddFallVM(View.ISearchFileViewService vs) { myModel = new FallModel(); // MyComAdd = new AddFallCommand(this); MyComAdd = new AddFallCommand(this); MyComSearch = new SearchFileCommand(this); // MyComSearch = new SearchFCommand(this); //MyComSearch = new AddFallCommand(this); viewService = vs; }
public TheViewModel() { CurrentModel = new Model.Model(); TheFall = CurrentModel.CurFall; TheReportFall = CurrentModel.CurRepFall; TheUser = CurrentModel.CurUser; AddRepCom = new AddReportCommand(this); AddFallCom = new AddFallCommand(this); RepBtnCom = new ReportBtnCommand(this); FallBtnCom = new FallBtnCommand(this); loadCom = new loadImageCommand(this); AnalysisBtnCom = new GraphsCommand(this); MapsBtnCom = new MapsCommand(this); }