コード例 #1
0
ファイル: FeaturedDataModel.cs プロジェクト: TellOP/APP
 /// <summary>
 /// Refreshes the list of featured exercises and the list of tips.
 /// </summary>
 public void RefreshExercises()
 {
     this.FeaturedExercises = NotifyTaskCompletion.Create(GetFeaturedExercisesAsync());
     this.AppTip            = NotifyTaskCompletion.Create(TipsDataModel.GetSingleTipAsync());
 }
コード例 #2
0
ファイル: HistoryDataModel.cs プロジェクト: TellOP/APP
 /// <summary>
 /// Refreshes the exercise history.
 /// </summary>
 public void RefreshHistory()
 {
     this.ExerciseHistory = NotifyTaskCompletion.Create(GetHistoryAsync());
     this.AppTip          = NotifyTaskCompletion.Create(TipsDataModel.GetSingleTipAsync());
 }