Ejemplo n.º 1
0
 public void Load()
 {
     CurrentFallPredictionVM = new FallPredictionVM();
     CurrentFallVM           = new FallsVM();
     FallPredictionList      = ((IEnumerable <FallPrediction>)(CurrentFallPredictionVM.FallPredictions)).ToList <FallPrediction>();
     InitializeGraph();
 }
Ejemplo n.º 2
0
 public GraphUC()
 {
     InitializeComponent();
     DataContext             = this;
     CurrentFallPredictionVM = new FallPredictionVM();
     CurrentFallVM           = new FallsVM();
     FallPredictionList      = ((IEnumerable <FallPrediction>)(CurrentFallPredictionVM.FallPredictions)).ToList <FallPrediction>();
     InitializeGraph();
 }
 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 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 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 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();
        }