Exemplo n.º 1
0
        public async void GetSmilies()
        {
            var smiliesManager = new SmileManager();

            SmilieCategoryList = await smiliesManager.GetSmileList();

            FullSmileCategoryEntities = SmilieCategoryList;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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");
        }
Exemplo n.º 5
0
        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;
        }