protected override Navigator GetChildNavigatorWithGuid(FacebookObjectId guid) { Verify.IsTrue(FacebookObjectId.IsValid(guid), "Invalid guid"); _albums.VerifyAccess(); for (int index = 0; index < _albums.Count; ++index) { if (_albums[index].AlbumId == guid) { var navigator = new PhotoAlbumNavigator(_albums[index], this) { ParentIndex = index, }; return(navigator); } } return(null); }
public override Navigator GetChildNavigatorWithContent(object content) { _albums.VerifyAccess(); var photo = content as FacebookPhoto; var album = content as FacebookPhotoAlbum; if (photo != null) { album = photo.Album; } if (album == null) { return(null); } for (int index = 0; index < _albums.Count; ++index) { if (_albums[index].Equals(album)) { var navigator = new PhotoAlbumNavigator(_albums[index], this) { ParentIndex = index, }; if (photo != null) { return(navigator.GetChildNavigatorWithContent(photo)); } return(navigator); } } return(null); }