Пример #1
0
 public ShopWindowViewModel()
 {
     _mediaDataProvider = new MediaDataProvider();
     _mediaMetaData = _mediaDataProvider.GetMediaInfo();
     //Show root movie
     SetMediaLayout(_mediaMetaData.MovieGroups[0],
                    _mediaMetaData.MovieGroups[0].Movies.FirstOrDefault(mov => mov.IsRootMovie));
 }
Пример #2
0
 public MediaInfo GetMediaInfo()
 {
     return _mediaInfo ?? (_mediaInfo = _metaDataSerializer.Deserialize(MediaData.ResourceName, MediaData.Assembly));
 }