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();
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public ProgramProperties(DateTime viewPortMinTime, DateTime viewPortMaxTime)
 {
     _viewPortMinTime = viewPortMinTime;
       _viewPortMaxTime = viewPortMaxTime;
       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);
 }
 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 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;
        }
Exemplo n.º 6
0
 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 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);
 }