Ejemplo n.º 1
0
 private async Task LoadGendersAsync()
 {
     var items = await GenderService.GetAllAsync<BaseGenderModel>();
     Genders = new TypedListObservableCollection<BaseGenderModel>(items);
 }
Ejemplo n.º 2
0
 private async Task LoadCountriesAsync()
 {
     var items = await CountryService.GetAllAsync<BaseCountryModel>();
     Countries = new TypedListObservableCollection<BaseCountryModel>(items);
 }
Ejemplo n.º 3
0
 private async Task LoadEmailTypesAsync()
 {
     var items = await EmailTypeService.GetAllAsync<BaseEmailTypeModel>();
     EmailTypes = new TypedListObservableCollection<BaseEmailTypeModel>(items);
 }
Ejemplo n.º 4
0
 private async Task LoadTypesAsync()
 {
     var items = await AccountTypeService.GetAllAsync<BaseAccountTypeModel>();
     Types = new TypedListObservableCollection<BaseAccountTypeModel>(items);
 }
Ejemplo n.º 5
0
 private async Task LoadCitiesAsync(string countryId)
 {
     var items = await CityService.GetAllAsyncByCountry<BaseCityModel>(countryId);
     Cities = new TypedListObservableCollection<BaseCityModel>(items);
 }
Ejemplo n.º 6
0
 private async Task LoadCurrenciesAsync()
 {
     var items = await CurrencyService.GetAllAsync<CurrencyModel>();
     Currencies = new TypedListObservableCollection<CurrencyModel>(items);
 }
Ejemplo n.º 7
0
 public async Task LoadDataAsync()
 {
     IsLoading = true;
     try
     {
         var items = await AccountService.GetAllAsync<AccountCollectionModel>();
         Items = new TypedListObservableCollection<AccountCollectionModel>(items);
     }
     catch (Exception ex)
     {
         MessageBoxService.Show(ex.Message, Labels.Title, MessageBoxButton.OK,
             MessageBoxImage.Error);
     }
     finally
     {
         IsLoading = false;
     }
 }