public VideoServiceVideoSource()
        {
            TabText   = Res.Get(StringId.VideoFromVideoService);
            TabBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Video.VideoService.Images.VideoServiceTab.png");
            Name      = "VideoServiceSource";

            _listBoxVideos = new VideoListBoxControl();
            _listBoxVideos.Initialize();

            _sidebarService = new SidebarListBox <IVideoService>();
            _sidebarService.Initialize();

            _videoLoginStatusControl = new LoginStatusControl();
            _videoLoginStatusControl.ShowLoginButton = false;

            _videoPagingControl             = new VideoPagingControl();
            _videoPagingControl.RightToLeft = BidiHelper.IsRightToLeft ? RightToLeft.Yes : RightToLeft.No;

            _videoRequestComboBox         = new VideoRequestTypeComboBox();
            _videoRequestComboBox.Visible = false;

            _videoLoginControl = new PanelLoginControl();

            SuspendLayout();
            Controls.Add(_listBoxVideos);
            Controls.Add(_sidebarService);
            Controls.Add(_videoLoginStatusControl);
            Controls.Add(_videoPagingControl);
            Controls.Add(_videoRequestComboBox);
            Controls.Add(_videoLoginControl);
            ResumeLayout();

            _sidebarService.AccessibleName = Res.Get(StringId.Plugin_Video_Provider_Select);
        }
        public VideoServiceVideoSource()
        {
            TabText = Res.Get(StringId.VideoFromVideoService);
            TabBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Video.VideoService.Images.VideoServiceTab.png");
            Name = "VideoServiceSource";

            _listBoxVideos = new VideoListBoxControl();
            _listBoxVideos.Initialize();

            _sidebarService = new SidebarListBox<IVideoService>();
            _sidebarService.Initialize();

            _videoLoginStatusControl = new LoginStatusControl();
            _videoLoginStatusControl.ShowLoginButton = false;

            _videoPagingControl = new VideoPagingControl();
            _videoPagingControl.RightToLeft = BidiHelper.IsRightToLeft ? RightToLeft.Yes : RightToLeft.No;

            _videoRequestComboBox = new VideoRequestTypeComboBox();
            _videoRequestComboBox.Visible = false;

            _videoLoginControl = new PanelLoginControl();

            SuspendLayout();
            Controls.Add(_listBoxVideos);
            Controls.Add(_sidebarService);
            Controls.Add(_videoLoginStatusControl);
            Controls.Add(_videoPagingControl);
            Controls.Add(_videoRequestComboBox);
            Controls.Add(_videoLoginControl);
            ResumeLayout();

            _sidebarService.AccessibleName = Res.Get(StringId.Plugin_Video_Provider_Select);
        }
        public VideoPublishSource(String selectedPermission)
        {
            InitializeComponent();
            _selectedPermission = selectedPermission;
            llTerms.FlatStyle   = FlatStyle.System;
            llSafety.FlatStyle  = FlatStyle.System;

            llSafety.LinkColor = SystemColors.HotTrack;
            llTerms.LinkColor  = SystemColors.HotTrack;

            lblCategory.Text           = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Categories);
            lblDescription.Text        = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Description);
            lblPermissions.Text        = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Permissions);
            lblTags.Text               = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Tags);
            lblTitle.Text              = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Title);
            lblVideos.Text             = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_File);
            btnFileOpen.Text           = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_File_Open);
            btnFileOpen.AccessibleName = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_Open_File);

            llTerms.LinkClicked  += llTerms_LinkClicked;
            llSafety.LinkClicked += new LinkLabelLinkClickedEventHandler(llSafety_LinkClicked);

            TabText   = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Tab_Title);
            TabBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Video.Images.TabInsertVideoFromFile.png", false);
            BackColor = SystemColors.Control;

            // Since it is a generic control we have to create it ourself
            sideBarControl = new SidebarListBox <IVideoPublisher>();
            sideBarControl.AccessibleName = Res.Get(StringId.Plugin_Video_Provider_Select);
            sideBarControl.Name           = "sideBarControl";
            sideBarControl.Anchor         = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
            sideBarControl.TabIndex       = 5;
            sideBarControl.Location       = new Point(10, 48);
            sideBarControl.Size           = new Size(101, 381);
            sideBarControl.Initialize();
            Controls.Add(sideBarControl);

            videoLoginStatusControl.Top  = ContentSourceLayout.Y_MARGIN;
            videoLoginStatusControl.Left = 8;

            videoLoginStatusControl.LoginClicked      += new EventHandler(videoLoginStatusControl_LoginClicked);
            videoLoginStatusControl.SwitchUserClicked += new EventHandler(videoLoginStatusControl_LoginClicked);

            ToolTip2 tip = new ToolTip2();

            tip.SetToolTip(btnFileOpen, Res.Get(StringId.BrowseForFile));
        }
        public VideoPublishSource(String selectedPermission)
        {
            InitializeComponent();
            _selectedPermission = selectedPermission;
            llTerms.FlatStyle = FlatStyle.System;
            llSafety.FlatStyle = FlatStyle.System;

            llSafety.LinkColor = SystemColors.HotTrack;
            llTerms.LinkColor = SystemColors.HotTrack;

            lblCategory.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Categories);
            lblDescription.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Description);
            lblPermissions.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Permissions);
            lblTags.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Tags);
            lblTitle.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Title);
            lblVideos.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_File);
            btnFileOpen.Text = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_File_Open);
            btnFileOpen.AccessibleName = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Video_Open_File);

            llTerms.LinkClicked += llTerms_LinkClicked;
            llSafety.LinkClicked += new LinkLabelLinkClickedEventHandler(llSafety_LinkClicked);

            TabText = Res.Get(StringId.Plugin_Video_Soapbox_Publish_Tab_Title);
            TabBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Video.Images.TabInsertVideoFromFile.png", false);
            BackColor = SystemColors.Control;

            // Since it is a generic control we have to create it ourself
            sideBarControl = new SidebarListBox<IVideoPublisher>();
            sideBarControl.AccessibleName = Res.Get(StringId.Plugin_Video_Provider_Select);
            sideBarControl.Name = "sideBarControl";
            sideBarControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom;
            sideBarControl.TabIndex = 5;
            sideBarControl.Location = new Point(10, 48);
            sideBarControl.Size = new Size(101, 381);
            sideBarControl.Initialize();
            Controls.Add(sideBarControl);

            videoLoginStatusControl.Top = ContentSourceLayout.Y_MARGIN;
            videoLoginStatusControl.Left = 8;

            videoLoginStatusControl.LoginClicked += new EventHandler(videoLoginStatusControl_LoginClicked);
            videoLoginStatusControl.SwitchUserClicked += new EventHandler(videoLoginStatusControl_LoginClicked);

            ToolTip2 tip = new ToolTip2();
            tip.SetToolTip(btnFileOpen, Res.Get(StringId.BrowseForFile));
        }