public WeightInfo GetTodaysWeight(UserProfile user)
 {
     if (data.ContainsKey(DateTime.Now.ToShortDateString()))
     {
         return data[DateTime.Now.ToShortDateString()] ;
     }
     return null;
 }
 public TodaysWeightViewModel(UserProfile profile)
 {
     _profile = profile;
 }
 private void LoggedIn(UserProfile profile)
 {
     LoginProfile = profile;
     SetTodaysDateScreen(profile);
     ResetCommandCanExecutes();
 }
 private void SetTodaysDateScreen(UserProfile profile)
 {
     CurrentViewModel = new TodaysWeightViewModel(profile);
 }
 public WeightInfo GetLastWeight(UserProfile user)
 {
     return data.Values.Where(c => String.Equals(c.MeasureDate.ToShortDateString(), DateTime.Now.ToShortDateString(), StringComparison.InvariantCultureIgnoreCase)).Last();
 }