Esempio n. 1
0
 private async Task <ObservableCollection <Runner> > GetAllRunners()
 {
     IsBusy  = true;
     Runners = new ObservableCollection <Runner>(await RunnerServices.GetAllRunners());
     IsBusy  = false;
     return(Runners);
 }
Esempio n. 2
0
        public async void GetRunners()
        {
            IsBusy  = true;
            Runners = await RunnerServices.GetAllRunners();

            IsBusy        = false;
            IsRunnerEmpty = Runners.Count == 0 ? true : false;
        }