protected BaseVideoPlayerUIContributor() : base(false, UPDATE_INTERVAL_MS) { _subtitlesAvailableProperty = new WProperty(typeof(bool), false); _chaptersAvailableProperty = new WProperty(typeof(bool), false); _titlesAvailableProperty = new WProperty(typeof(bool), false); StartTimer(); }
public VideoViewModel(VideoInfo videoInfo, Category category, string siteName, string utilName, bool isDetailsVideo) : base(Consts.KEY_NAME, isDetailsVideo ? ((DetailVideoInfo)videoInfo).Title2 : videoInfo.Title) { VideoInfo = videoInfo; Category = category; SiteName = siteName; SiteUtilName = utilName; IsDetailsVideo = isDetailsVideo; _titleProperty = new WProperty(typeof(string), videoInfo.Title); _title2Property = new WProperty(typeof(string), isDetailsVideo ? ((DetailVideoInfo)videoInfo).Title2 : string.Empty); _descriptionProperty = new WProperty(typeof(string), videoInfo.Description); _lengthProperty = new WProperty(typeof(string), videoInfo.Length); _airdateProperty = new WProperty(typeof(string), videoInfo.Airdate); _thumbnailImageProperty = new WProperty(typeof(string), videoInfo.ThumbnailImage); _contextMenuEntriesProperty = new WProperty(typeof(ItemsList), null); eventDelegator = OnlineVideosAppDomain.Domain.CreateInstanceAndUnwrap(typeof(PropertyChangedDelegator).Assembly.FullName, typeof(PropertyChangedDelegator).FullName) as PropertyChangedDelegator; eventDelegator.InvokeTarget = new PropertyChangedExecutor() { InvokeHandler = (s, e) => { if (e.PropertyName == "ThumbnailImage") { ThumbnailImage = (s as VideoInfo).ThumbnailImage; } else if (e.PropertyName == "Length") { Length = (s as VideoInfo).Length; } } }; VideoInfo.PropertyChanged += eventDelegator.EventDelegate; }
public VideoPlayerModel() : base(Consts.WF_STATE_ID_CURRENTLY_PLAYING_VIDEO, Consts.WF_STATE_ID_FULLSCREEN_VIDEO) { _isOSDVisibleProperty = new WProperty(typeof(bool), false); _isPipProperty = new WProperty(typeof(bool), false); SubscribeToMessages(); // Don't StartTimer here, since that will be done in method EnterModelContext }
public SiteViewModel(Sites.SiteUtilBase site) : base(Consts.KEY_NAME, site.Settings.Name) { _site = site; _nameProperty = new WProperty(typeof(string), site.Settings.Name); _languageProperty = new WProperty(typeof(string), site.Settings.Language); _descriptionProperty = new WProperty(typeof(string), site.Settings.Description); _contextMenuEntriesProperty = new WProperty(typeof(ItemsList), null); _settingsListProperty = new WProperty(typeof(ItemsList), null); }
public ProgramProperties() { ProgramIdProperty = new WProperty(typeof(int), 0); IsScheduledProperty = new WProperty(typeof(bool), false); IsSeriesScheduledProperty = new WProperty(typeof(bool), false); TitleProperty = new WProperty(typeof(String), String.Empty); DescriptionProperty = new WProperty(typeof(String), String.Empty); GenreProperty = new WProperty(typeof(String), String.Empty); StartTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); EndTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); RemainingDurationProperty = new WProperty(typeof(int), 0); Attach(); }
public ProgramProperties(DateTime viewPortMinTime, DateTime viewPortMaxTime) { _viewPortMinTime = viewPortMinTime; _viewPortMaxTime = viewPortMaxTime; ProgramIdProperty = new WProperty(typeof(int), 0); IsScheduledProperty = new WProperty(typeof(bool), false); TitleProperty = new WProperty(typeof(String), String.Empty); DescriptionProperty = new WProperty(typeof(String), String.Empty); GenreProperty = new WProperty(typeof(String), String.Empty); StartTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); EndTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); RemainingDurationProperty = new WProperty(typeof(int), 0); ProgramWidthProperty = new WProperty(typeof(double), 0d); }
public ProgramProperties() { ProgramIdProperty = new WProperty(typeof(int), 0); IsScheduledProperty = new WProperty(typeof(bool), false); IsSeriesScheduledProperty = new WProperty(typeof(bool), false); TitleProperty = new WProperty(typeof(String), String.Empty); DescriptionProperty = new WProperty(typeof(String), String.Empty); EpgGenreIdProperty = new WProperty(typeof(int), 0); EpgGenreColorProperty = new WProperty(typeof(String), String.Empty); GenreProperty = new WProperty(typeof(String), String.Empty); StartTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); EndTimeProperty = new WProperty(typeof(DateTime), DateTime.MinValue); RemainingDurationProperty = new WProperty(typeof(int), 0); EpisodeNumberProperty = new WProperty(typeof(String), String.Empty); SeasonNumberProperty = new WProperty(typeof(String), String.Empty); EpisodeTitleProperty = new WProperty(typeof(String), String.Empty); SeriesProperty = new WProperty(typeof(String), String.Empty); ChannelNameProperty = new WProperty(typeof(String), String.Empty); ChannelLogoTypeProperty = new WProperty(typeof(String), String.Empty); Attach(); }
public AudioPlayerModel() : base(Consts.WF_STATE_ID_CURRENTLY_PLAYING_AUDIO, Consts.WF_STATE_ID_FULLSCREEN_AUDIO) { _mediaItemProperty = new SProperty(typeof(MediaItem), null); _isOSDVisibleProperty = new WProperty(typeof(bool), false); }
public void Setup() { this.pi = new Mock<PropertyInfo>(); this.propertyType = new Mock<Type>(); this.accessMapper = new Mock<AccessModifierMapper>(); this.methodInfo = new Mock<MethodInfo>(); this.property = new WProperty(this.pi.Object, this.accessMapper.Object); }
public SiteGroupViewModel(string groupName, string groupThumb, List <string> sitenames) : base(Consts.KEY_NAME, groupName) { _thumbProperty = new WProperty(typeof(string), groupThumb); _sitesProperty = new WProperty(typeof(List <string>), sitenames); }