Ejemplo n.º 1
0
 public void EvaluateEstimateFallLocation()
 {
     if (FallsLocationlist.Count == 0)
     {
         EstimateFallLocation = null;
     }
     else
     {
         //TODO: add here the algorithem of get astimate location as TASK;
         EstimateFallLocation = FallLocationService.EstimateFallLocation(FallsLocationlist);
     };
 }
Ejemplo n.º 2
0
 public AccurateFallLocation(string date, string picPath, Action sucsess, Action fail)
 {
     try
     {
         ID = Settings.Default.fallLocationCounter;
         Settings.Default.fallLocationCounter++;
         this.Date     = date;
         NumberOfFalls = 1;
         string destinationFile = Settings.Default.PicPathLocation;
         destinationFile = System.IO.Path.Combine(destinationFile, "AFL_" + ID + ".jpg");
         System.IO.File.Copy(picPath, destinationFile, true);
         Adress  = FallLocationService.GetAdressFromPath(picPath);
         PicPath = picPath;
         sucsess();
     }
     catch (Exception e)
     {
         fail();
     }
 }