Esempio n. 1
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            if (this._isInitialized)
            {
                return;
            }
            this._videoId = long.Parse(((Page)this).NavigationContext.QueryString["VideoId"]);
            AddToAlbumViewModel toAlbumViewModel = new AddToAlbumViewModel(this.CommonParameters.OwnerId, this._videoId);

            base.DataContext = toAlbumViewModel;
            toAlbumViewModel.AlbumsVM.LoadData(false, false, null, false);
            this._isInitialized = true;
        }
Esempio n. 2
0
        protected override void HandleOnNavigatedTo(NavigationEventArgs e)
        {
            base.HandleOnNavigatedTo(e);
            if (this._isInitialized)
            {
                return;
            }
            this._videoId = long.Parse(this.NavigationContext.QueryString["VideoId"]);
            AddToAlbumViewModel toAlbumViewModel = new AddToAlbumViewModel(this.CommonParameters.OwnerId, this._videoId);

            this.DataContext = (object)toAlbumViewModel;
            toAlbumViewModel.AlbumsVM.LoadData(false, false, (Action <BackendResult <VKList <VideoAlbum>, ResultCode> >)null, false);
            this._isInitialized = true;
        }