public ProfileMediaViewModelFacade() { this._mediaHorizontalItemsViewModel = (IMediaHorizontalItemsViewModel) new ProfilePhotosViewModel(); this._mediaVerticalItemsViewModel = (IMediaVerticalItemsViewModel) new ProfileAudiosViewModel(); this._mediaSectionsViewModel = new ProfileMediaSectionsViewModel(); EventAggregator.Current.Subscribe(this); }
public void Init(IProfileData profileData, ProfileMainSectionType mainSectionType) { this._profileData = profileData; this._isGroup = this._profileData is Group; this._mainSectionType = mainSectionType; List <MediaListSectionViewModel> mediaItems = this.CreateMediaItems(); if (ProfileMediaSectionsViewModel.AreItemsEqual((IList <MediaListSectionViewModel>)mediaItems, (IList <MediaListSectionViewModel>) this._items)) { return; } this.Items = new List <MediaListSectionViewModel>((IEnumerable <MediaListSectionViewModel>)mediaItems); }
public ProfileMediaViewModelFacade() { this._mediaHorizontalItemsViewModel = (IMediaHorizontalItemsViewModel) new ProfilePhotosViewModel(); this._mediaVerticalItemsViewModel = (IMediaVerticalItemsViewModel) new ProfileAudiosViewModel(); this._mediaSectionsViewModel = new ProfileMediaSectionsViewModel(); }