示例#1
0
        public async void GetSmilies()
        {
            var smiliesManager = new SmileManager();

            SmilieCategoryList = await smiliesManager.GetSmileList();

            FullSmileCategoryEntities = SmilieCategoryList;
        }
示例#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;
 }
示例#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;
        }
示例#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");
        }
示例#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;
        }