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

            await Task.Run(() =>
            {
                SexList      = SexModel.ReturnSexes();
                SpeciesList  = SpeciesModel.ReturnSpecies();
                BreedList    = BreedModel.ReturnBreeds(null);
                CoatTypeList = CoatTypeModel.ReturnCoatTypes();
                FurColorList = FurColorModel.ReturnFurColors();
            });

            IsWorking = false;
        }
コード例 #2
0
        private async Task LoadData()
        {
            IsWorking = true;
            await Task.Delay(150);

            await Task.Run(() =>
            {
                SexList        = SexModel.ReturnSexes();
                SpeciesList    = SpeciesModel.ReturnSpecies();
                BreedList      = BreedModel.ReturnBreeds(Animal.SpeciesID);
                CrossBreedList = BreedModel.ReturnBreeds(Animal.SpeciesID);
                CoatTypeList   = CoatTypeModel.ReturnCoatTypes();
                FurColorList   = FurColorModel.ReturnFurColors();
                VetList        = PersonModel.ReturnVets();
                OwnerList      = PersonModel.ReturnOwners();
                NewOwnerList   = PersonModel.ReturnOwners();
            });

            IsWorking = false;
        }