コード例 #1
0
        private async Task GetData()
        {
            IsWorking = true;
            await Task.Delay(150);

            await Task.Run(() =>
            {
                AnimalWalks = WalkModel.GetAnimalWalks(AnimalID);
            });

            IsWorking = false;
        }
コード例 #2
0
        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;
        }