protected override void HandleOnNavigatedTo(NavigationEventArgs e) { base.HandleOnNavigatedTo(e); if (this._isInitialized) { return; } this._videoId = long.Parse(((Page)this).NavigationContext.QueryString["VideoId"]); this._videoOwnerId = long.Parse(((Page)this).NavigationContext.QueryString["VideoOwnerId"]); VideosOfOwnerViewModel ofOwnerViewModel = new VideosOfOwnerViewModel(this.CommonParameters.UserOrGroupId, this.CommonParameters.IsGroup, 0, false); ofOwnerViewModel.ShowAddedAlbum = true; base.DataContext = ofOwnerViewModel; ofOwnerViewModel.AlbumsVM.LoadData(false, false, null, false); this._isInitialized = true; }
protected override void HandleOnNavigatedTo(NavigationEventArgs e) { base.HandleOnNavigatedTo(e); long albumId = 0; string albumName = ""; if (((Page)this).NavigationContext.QueryString.ContainsKey("AlbumId")) { albumId = long.Parse(((Page)this).NavigationContext.QueryString["AlbumId"]); } if (((Page)this).NavigationContext.QueryString.ContainsKey("AlbumName")) { albumName = ((Page)this).NavigationContext.QueryString["AlbumName"]; } this._pickMode = bool.Parse(((Page)this).NavigationContext.QueryString["PickMode"]); if (!this._isInitialized) { if (this.CommonParameters.UserOrGroupId == 0L) { this.CommonParameters.UserOrGroupId = AppGlobalStateManager.Current.LoggedInUserId; } this._forceAllowVideoUpload = ((Page)this).NavigationContext.QueryString.ContainsKey("ForceAllowVideoUpload") && ((Page)this).NavigationContext.QueryString["ForceAllowVideoUpload"] == bool.TrueString; VideosOfOwnerViewModel ofOwnerViewModel = new VideosOfOwnerViewModel(this.CommonParameters.UserOrGroupId, this.CommonParameters.IsGroup, albumId, this._pickMode); // ISSUE: method pointer ofOwnerViewModel.GotUploadedAndAlbumsInfoCallback = new Action(this.HideUploadedAndAlbumsIfNeeded); base.DataContext = ofOwnerViewModel; this.UpdatePageHeaderForAlbum(albumId, albumName); this._albumId = albumId; ofOwnerViewModel.AllVideosVM.LoadData(false, false, (Action <BackendResult <VKList <VKClient.Common.Backend.DataObjects.Video>, ResultCode> >)null, false); this.UpdateTitle(); this._isInitialized = true; } this.HandleInputParams(); this.UpdateAppBar(); if (this._pickMode) { return; } int num1 = this.CommonParameters.IsGroup ? 1 : 0; long userOrGroupId = this.CommonParameters.UserOrGroupId; long num2 = num1 != 0 ? -userOrGroupId : userOrGroupId; CurrentMediaSource.VideoSource = num1 != 0 ? StatisticsActionSource.videos_group : StatisticsActionSource.videos_user; CurrentMediaSource.VideoContext = string.Format("{0}_{1}", num2, albumId); }