Пример #1
0
        private void LoadDatas(bool isLoadTag)
        {
            loadingTip.Visibility = Visibility.Collapsed;

            if (_gridViewScrollViewer != null)
            {
                _gridViewScrollViewer.ScrollToHorizontalOffset(0);
            }
            if (_snapGridViewScrollViewer != null)
            {
                _snapGridViewScrollViewer.ScrollToVerticalOffset(0);
            }

            _currentPage = 0;
            _maxPage     = 2;

            _channelViewModel.Groups.PerformanceClear();
            _tagFactory.Cancel();
            _channelFactory.Cancel();

            if (isLoadTag)
            {
                _tagFactory.DownLoadDatas(_typeItem.TypeId, TagDimension.Catalog);
            }
            RequestDatas();
        }
Пример #2
0
        private void LoadDatas(bool isLoadTag)
        {
            loadingTip.Visibility = Visibility.Collapsed;

            _currentPage = 0;
            _maxPage     = 2;

            _channelViewModel.PerformanceClear();
            _tagFactory.Cancel();
            _channelFactory.Cancel();

            if (isLoadTag)
            {
                _tagFactory.DownLoadDatas(_typeId, TagDimension.Catalog);
            }
            RequestDatas();
        }
Пример #3
0
 private void StartInitData()
 {
     if (_typeID == -1)
     {
         return;
     }
     SetDownloadStatus(true);
     _tagFactoryOfYear.DownLoadDatas(_typeID, "year");
     _tagFactoryOfArea.DownLoadDatas(_typeID, "area");
     _tagFactoryOfCatalog.DownLoadDatas(_typeID, "catalog");
     LogManager.Ins.Log("开始下载Tag数据");
 }