public FTPSettingsForm(FtpUploaderSettings ftpSettings)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            buttonCancel.Text = Res.Get(StringId.CancelButton);
            buttonOK.Text = Res.Get(StringId.OKButtonText);
            linkLabel1.Text = Res.Get(StringId.FtpHelp);
            labelUrlMapping.Text = Res.Get(StringId.FtpFolderUrl);
            textBoxUrlMapping.RightToLeft = RightToLeft.No;
            if (BidiHelper.IsRightToLeft)
                textBoxUrlMapping.TextAlign = HorizontalAlignment.Right;
            labelPath.Text = Res.Get(StringId.FtpFolderPath);
            labelHostName.Text = Res.Get(StringId.FtpHostname);
            labelPassword.Text = Res.Get(StringId.FtpPassword);
            labelUserName.Text = Res.Get(StringId.FtpUsername);
            checkBoxSavePassword.Text = Res.Get(StringId.RememberPassword);
            Text = Res.Get(StringId.FtpText);

            ToolTip2 tip = new ToolTip2();
            tip.SetToolTip(buttonBrowse, Res.Get(StringId.PublishFolderPickerToolTip));

            //marketization
            if (!MarketizationOptions.IsFeatureEnabled(MarketizationOptions.Feature.FTPHelp))
            {
                linkLabel1.Visible = false;
                pictureBoxHelp.Visible = false;
            }

            // pretty password chars
            textBoxPassword.PasswordChar = Res.PasswordChar;

            // save reference to settings
            _ftpSettings = ftpSettings;

            // populate controls
            _originalHostname = ftpSettings.FtpServer;
            textBoxHostName.Text = ftpSettings.FtpServer;

            _originalUsername = ftpSettings.Username;
            textBoxUsername.Text = ftpSettings.Username;

            _originalPassword = ftpSettings.Password;
            textBoxPassword.Text = ftpSettings.Password;
            checkBoxSavePassword.Checked = ftpSettings.Password != String.Empty;

            _originalPath = ftpSettings.PublishPath;
            textBoxPath.Text = ftpSettings.PublishPath;

            _originalUrlMapping = ftpSettings.UrlMapping;
            textBoxUrlMapping.Text = ftpSettings.UrlMapping;
        }
        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));
        }