private async void LoadDataNew() { this.ControlLoadding.set_Visibility(0); this._statusLoading = true; this._currentPage = this._currentPage + 1; XemLai xemLai = this; ObservableCollection <Video> observableCollection = xemLai._lsVideosLoadNew; ObservableCollection <Video> videoXemLai = await GetData.GetVideoXemLai(string.Concat("http://vtvapi.channelvn.net/Handlers/VideoByZone.aspx?zonevideoid=0&page=", this._currentPage, "&pagesize=18&isnewstyle=1&topExclusion=0")); xemLai._lsVideosLoadNew = videoXemLai; xemLai = null; foreach (Video video in this._lsVideosLoadNew) { this._lsVideos.Add(video); } this.LsChannel.set_ItemsSource(this._lsVideos); this._statusLoading = false; this.ControlLoadding.set_Visibility(1); }
private async void LoadDataVtc() { this.ControlLoadding.set_Visibility(0); this._statusLoading = true; this._currentPage = this._currentPage + 1; XemLai xemLai = this; ObservableCollection <Video> observableCollection = xemLai._lsVideosLoadNew; object[] objArray = new object[] { "http://www1.tvnet.gov.vn/modules/process.php?option=vod&cat_id=0&page=", this._currentPage, "&channel_id=", this._kenhDcChon }; ObservableCollection <Video> videoVtc = await GetData.GetVideoVtc(string.Concat(objArray), "theokenh"); xemLai._lsVideosLoadNew = videoVtc; xemLai = null; foreach (Video video in this._lsVideosLoadNew) { this._lsVideos.Add(video); } this.LsChannel.set_ItemsSource(this._lsVideos); this._statusLoading = false; this.ControlLoadding.set_Visibility(1); }