private async void UpdateBreeds(int?speciesID) { await Task.Run(() => { BreedList = BreedModel.ReturnBreeds(speciesID); NotifyOfPropertyChange(() => Breed); NotifyOfPropertyChange(() => CrossBreed); }); }
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; }
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; }
private void LoadBreeds() { BreedList = BreedModel.ReturnBreeds(null); }