Esempio n. 1
0
        async Task ExecuteLoadItemsCommand()
        {
            IsBusy = true;

            try
            {
                Program = (await ProgramDataStore.GetItemsAsync(true)).First();
                WorkoutDay.Clear();
                WorkoutDay.AddRange(Program.WorkoutDays);
                OnPropertyChanged(nameof(Program));
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }