private void AddCollectionItem(GifCollectionItem gifCollectionItem)
        {
            _gifCollectionServiceObj.InsertGifCollectionItem(gifCollectionItem);

            GifCollections.Add(gifCollectionItem);
            NewCollectionName = String.Empty;
        }
Example #2
0
        internal async void RefreshCollections()
        {
            if (GifCollections != null)
            {
                GifCollections.Clear();
                List <GifCollectionItem> gifCollectionItems = await _gifCollectionService.GetGifCollections();

                gifCollectionItems.ForEach((item) => GifCollections.Add(item));
                IsCollectionsVisible = (GifCollections.Count > 0);
                _isRefreshed         = true;
            }
        }
        private async Task <bool> RefreshGifCollectionItems()
        {
            if (GifCollections != null)
            {
                List <GifCollectionItem> gifCollectionItems = await _gifCollectionServiceObj.GetGifCollections();

                gifCollectionItems.ForEach((item) => { GifCollections.Add(item); });

                return(true);
            }

            return(false);
        }