Ejemplo n.º 1
0
        public async Task LoadTagsAndSorts()
        {
            var tempTag = await _localServer.GetTags();

            if (tempTag == null)
            {
                return;
            }
            Tags = new ObservableCollection <TagServerObj>(tempTag);

            if (Tags != null && Tags.Count > 0)
            {
                SelectedTag = Tags[0];
            }

            var tempSort = await _localServer.GetSorts();

            if (tempSort == null)
            {
                return;
            }

            Sorts = new ObservableCollection <SortServerObj>(tempSort);
            if (Sorts != null && Sorts.Count > 0)
            {
                SelectedSort = Sorts[0];
            }
        }
Ejemplo n.º 2
0
        public async Task LoadTagsAndSorts()
        {
            var tempTag = await _localServer.GetTags();

            if (tempTag == null)
            {
                return;
            }
            Tags = new ObservableCollection <TagServerObj>(tempTag);

            if (Tags != null && Tags.Count > 0)
            {
                _SelectedTag = Tags[0];
                NotifyOfPropertyChange(SelectedTagPropertyName);
            }

            var tempSort = await _localServer.GetSorts();

            if (tempSort == null)
            {
                return;
            }

            Sorts = new ObservableCollection <SortServerObj>(tempSort);
            if (Sorts != null && Sorts.Count > 0)
            {
                _SelectedSort = Sorts[0];
                NotifyOfPropertyChange(SelectedSortPropertyName);
            }
            //await Task.Delay(5000);
            ReLoadWallpapers();
        }