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(); }
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(); }
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数据"); }