public NewReportUC() { InitializeComponent(); CurrentVM = new FallReportVM(); this.DataContext = CurrentVM; SaveButton.IsEnabled = false; TimeDatePicker.Text = DateTime.Now.ToString(); PredictionAndRealFalls = PredictionAndRealFallsVM.Instance; }
public ExtraFieldsFall() { InitializeComponent(); CurrentFallReportVM = new FallReportVM(); CurrentFallPredictionVM = new FallPredictionVM(); DataContext = this; RealLocation = ""; CalculatedLocation = ""; ReportsNumber = 0; }
public ExtraFieldsFall(Fall CurrentFall) { InitializeComponent(); CurrentFallReportVM = new FallReportVM(); CurrentFallPredictionVM = new FallPredictionVM(); GPSCoordinate fallPredictionLocation = Prediction(CurrentFall).FallPredictionLocation; DataContext = this; RealLocation = CurrentFall.FallLocation.Latitude.ToString() + " " + "," + " " + CurrentFall.FallLocation.Longitude.ToString(); CalculatedLocation = fallPredictionLocation.Latitude.ToString() + " " + "," + " " + fallPredictionLocation.Longitude.ToString(); ReportsNumber = CalculateReportNumber(CurrentFall); }
public ExtraFieldsFall(Fall CurrentFall) { InitializeComponent(); CurrentFallReportVM = new FallReportVM(); CurrentFallPredictionVM = new AssessmentVM(); Location_ Assessmentlocation = GetAssessmentLocationOfFall(CurrentFall); DataContext = this; fallLocation = CurrentFall.location.latitude.ToString() + " " + "," + " " + CurrentFall.location.longitude.ToString(); CalculatedLocation = Assessmentlocation.latitude.ToString() + " " + "," + " " + Assessmentlocation.longitude.ToString(); ReportsNumber = CalculateReportNumber(CurrentFall); }
public void Load() { CurrentFallPredictionVM = new FallPredictionVM(); FallPredictionList = CurrentFallPredictionVM.FallPredictions.ToList(); CurrentFallReportVM = new FallReportVM(); FallReportList = CurrentFallReportVM.FallReports.ToList(); CurrentFallVM = new FallsVM(); FallList = CurrentFallVM.Falls.ToList(); ReportsNumber = FallReportList.Count(); PredictionsNumber = FallPredictionList.Count(); FallsNumber = FallList.Count(); }
public void Load() { CurrentFallPredictionVM = new AssessmentVM(); AssessmentsCount = CurrentFallPredictionVM.Assessments.Count(); CurrentFallReportVM = new FallReportVM(); ReportList = CurrentFallReportVM.Reports.ToList(); CurrentFallVM = new FallsVM(); FallList = CurrentFallVM.Falls.ToList(); ReportsNumber = ReportList.Count(); AssessmentsCount = AssessmentList.Count(); FallsNumber = FallList.Count(); }
public void Update(Fall CurrentFall) { CurrentFallReportVM = new FallReportVM(); CurrentFallPredictionVM = new FallPredictionVM(); GPSCoordinate fallPredictionLocation = Prediction(CurrentFall).FallPredictionLocation; DataContext = this; if (RealLocation != null) { RealLocation = CurrentFall.FallLocation.Latitude.ToString() + " " + "," + " " + CurrentFall.FallLocation.Longitude.ToString(); } if (CalculatedLocation != "") { CalculatedLocation = fallPredictionLocation.Latitude.ToString() + " " + "," + " " + fallPredictionLocation.Longitude.ToString(); } ReportsNumber = CalculateReportNumber(CurrentFall); }
public void Update(Fall CurrentFall) { CurrentFallReportVM = new FallReportVM(); CurrentFallPredictionVM = new AssessmentVM(); Location_ assessmentLocation = GetAssessmentLocationOfFall(CurrentFall); DataContext = this; if (fallLocation != null) { fallLocation = CurrentFall.location.latitude.ToString() + " " + "," + " " + CurrentFall.location.longitude.ToString(); } if (CalculatedLocation != "") { CalculatedLocation = assessmentLocation.latitude.ToString() + " " + "," + " " + assessmentLocation.longitude.ToString(); } ReportsNumber = CalculateReportNumber(CurrentFall); }
public StatisticsUC() { InitializeComponent(); this.DataContext = this; CurrentFallPredictionVM = new FallPredictionVM(); FallPredictionList = CurrentFallPredictionVM.FallPredictions.ToList(); CurrentFallReportVM = new FallReportVM(); FallReportList = CurrentFallReportVM.FallReports.ToList(); CurrentFallVM = new FallsVM(); FallList = CurrentFallVM.Falls.ToList(); ReportsNumber = FallReportList.Count(); PredictionsNumber = FallPredictionList.Count(); FallsNumber = FallList.Count(); }
public AddReportCommand(FallReportVM currentVM) { CurrentVM = currentVM; }