private async Task GetData() { IsWorking = true; await Task.Delay(150); await Task.Run(() => { AnimalWalks = WalkModel.GetAnimalWalks(AnimalID); }); IsWorking = false; }
private async Task LoadData() { IsWorking = true; await Task.Delay(150); await Task.Run(() => { AnimalWalks = WalkModel.GetAnimalWalks(AnimalID); WalkerList = PersonModel.ReturnWalkers(); NewWalkerList = PersonModel.ReturnWalkers(); }); IsWorking = false; }