public override void Init(MediaSmartContent content, string blogId) { base.Init(content, blogId); if (MarketizationOptions.IsFeatureEnabled(MarketizationOptions.Feature.YouTubeVideo)) { YouTubeVideoPublisher youtube = new YouTubeVideoPublisher(); youtube.Init(null, this, blogId); //FIXME sideBarControl.SetEntry(youtube, ResourceHelper.LoadAssemblyResourceBitmap("Video.YouTube.Images.Sidebar.png"), youtube.ToString()); } sideBarControl.SelectedIndexChanged += new EventHandler(sideBarControl_SelectedIndexChanged); }
public void RegisterServices(IVideoService[] services) { foreach (IVideoService service in services) { _sidebarService.SetEntry(service, service.Image, service.ServiceName); } _sidebarService.SelectedIndexChanged += _sidebarService_SelectedIndexChanged; _videoRequestComboBox.SelectedRequestTypeChanged += _videoRequestComboBox_SelectedRequestTypeChanged; _videoPagingControl.RefreshRequested += _videoPagingControl_RefreshRequested; _videoLoginStatusControl.LoginStatusChanged += _videoLoginStatusControl_LoginStatusChanged; _listBoxVideos.DoubleClick += _listBoxVideos_DoubleClick; }