public async void GetSmilies() { var smiliesManager = new SmileManager(); SmilieCategoryList = await smiliesManager.GetSmileList(); FullSmileCategoryEntities = SmilieCategoryList; }
private async void SimilesButton_Click(object sender, RoutedEventArgs e) { loadingProgressBar.Visibility = Visibility.Visible; if (!_smileCategoryList.Any()) { _smileCategoryList = await smileManager.GetSmileList(); } DefaultViewModel["Groups"] = _smileCategoryList; loadingProgressBar.Visibility = Visibility.Collapsed; }
public async void GetSmilies() { var smiliesManager = new SmileManager(); try { SmilieCategoryList = await smiliesManager.GetSmileList(); } catch (Exception ex) { AwfulDebugger.SendMessageDialogAsync("Can't get smilies list. :(", ex); return; } FullSmileCategoryEntities = SmilieCategoryList; }
public async Task Initialize() { if (!SmileCategoryList.Any()) { IsLoading = true; var list = await _smileManager.GetSmileList(); FullSmileCategoryEntities = list.ToObservableCollection(); foreach (var item in list) { SmileCategoryList.Add(item); } IsLoading = false; } OnPropertyChanged("SmileCategoryList"); }
public async void GetSmiliesPhone() { var smiliesManager = new SmileManager(); var smileList = new List <SmileEntity>(); try { SmilieCategoryList = await smiliesManager.GetSmileList(); } catch (Exception ex) { AwfulDebugger.SendMessageDialogAsync("Can't get smilies list. :(", ex); return; } foreach (var category in SmilieCategoryList) { smileList.AddRange(category.List); } SmileList = smileList; }