예제 #1
0
 public ProfilePageState(ProfilePage page)
 {
     this._zuneTag                = page.ProfilePanel.ZuneTag;
     this._profilePivot           = page.ProfilePanel.SelectedPivot;
     this._chosenIndexSortFriends = page.ProfilePanel.ChosenIndexSortFriends;
     this._pivotPreference        = page.PivotPreference;
     this._selectedFriendTag      = page.ProfilePanel.SelectedFriendTag;
     this._selectedPlaylistTrack  = page.ProfilePanel.SelectedPlaylistTrack;
 }
예제 #2
0
        public ProfilePage Restore()
        {
            Hashtable hashtable = new Hashtable();

            hashtable["ZuneTag"] = _zuneTag;
            hashtable["Pivot"]   = _profilePivot;
            hashtable["ChosenIndexSortFriends"] = _chosenIndexSortFriends;
            hashtable["FriendTag"]     = _selectedFriendTag;
            hashtable["PlaylistTrack"] = _selectedPlaylistTrack;
            ProfilePage profilePage = new ProfilePage(this._pivotPreference);

            profilePage.NavigationArguments = hashtable;
            return(profilePage);
        }
예제 #3
0
 internal ProfilePanel(
     ProfilePage page,
     string zuneTag,
     Category profilePivot,
     Guid playlistTrack,
     int chosenSortFriends,
     string selectedFriendTag)
     : base(page)
 {
     this._zuneTag       = zuneTag;
     this._selectedPivot = profilePivot;
     this._relationshipToSignedInUser = UserRelationship.Unknown;
     this._chosenIndexSortFriends     = chosenSortFriends;
     this._selectedFriendTag          = selectedFriendTag;
     this._selectedPlaylistTrack      = playlistTrack;
     this._canChangeSelectedItem      = true;
 }
 protected override ZunePage GetPage(IDictionary args) => ProfilePage.CreateInstance(args);