private async void LoadClientsList() { IsBusy = true; int numClients = Convert.ToInt32(Application.Current.Resources["numClients"]); ClientsList = new ObservableCollection <ItemModel>(await StringListRepository.GetAll(numClients, "Client_")); IsBusy = false; }
private async void LoadList() { IsBusy = true; int numItems = Convert.ToInt32(Application.Current.Resources["numItems"]); ItemsList = await StringListRepository.GetAll(numItems, "String_") as List <ItemModel>; IsBusy = false; }