コード例 #1
0
 public ProfileMediaViewModelFacade()
 {
     this._mediaHorizontalItemsViewModel = (IMediaHorizontalItemsViewModel) new ProfilePhotosViewModel();
     this._mediaVerticalItemsViewModel   = (IMediaVerticalItemsViewModel) new ProfileAudiosViewModel();
     this._mediaSectionsViewModel        = new ProfileMediaSectionsViewModel();
     EventAggregator.Current.Subscribe(this);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ProfileMediaViewModelFacade()
 {
     this._mediaHorizontalItemsViewModel = (IMediaHorizontalItemsViewModel) new ProfilePhotosViewModel();
     this._mediaVerticalItemsViewModel   = (IMediaVerticalItemsViewModel) new ProfileAudiosViewModel();
     this._mediaSectionsViewModel        = new ProfileMediaSectionsViewModel();
 }