protected override async void OnAppearing() { base.OnAppearing(); Exercise = await GetExercise(); Exercise = await RepController.PrepareRepSummaryAsync(Exercise); Exercise.Key = Key; Refresh(); }
private async Task <string> PrepareAddExerciseSummary(Exercise ex) { string summary = null; ex = await RepController.PrepareRepSummaryAsync(ex); foreach (var eType in ex.Types) { summary += (eType.Summary + "\n"); } return(summary); }