private void UpdatePreviewColors()
        {
            CustomColorTable = new Extensions.OverridenColorTable()
            {
                UseSystemColors        = false,
                ColorMenuBorder        = Color.Black,
                ColorMenuBarBackground = MenuStripBarBackground,
                ColorMenuItemSelected  = MenuStripBackgroundSelected,
                ColorMenuBackground    = MenuStripBackground,

                TextColor = MenuStripText
            };

            tableLayoutPanel3.BackColor = FormBackground;
            tableLayoutPanel3.ForeColor = FormTextColor;
            menuStrip1.Renderer         = new ToolStripProfessionalRenderer(CustomColorTable);
            menuStrip1.ForeColor        = MenuStripBarText;
            ReColorChildren(menuStrip1);

            RB_Preview.BackColor = LineColorBackground;
            RB_Preview.Clear();
            AppendChatLine("This is the generic line, which is usually any chat message", LineType.Generic);
            AppendChatLine("This is the irc command line, which is usually received when receiving information like connection state change / verification / moderation rights", LineType.IrcCommand);
            AppendChatLine("This is the moderation line, which is when a moderator uses a mod only command (rare one)", LineType.ModCommand);
            AppendChatLine("This is a sound playback line, which is when a user uses a sound", LineType.SoundCommand);
        }
        public ColorSettingsForm(PrivateSettings _programSettings)
        {
            InitializeComponent();

            FormBackground = _programSettings.Colors.FormBackground;
            FormTextColor  = _programSettings.Colors.FormTextColor;

            MenuStripBarBackground = _programSettings.Colors.MenuStripBarBackground;
            MenuStripBarText       = _programSettings.Colors.MenuStripBarText;

            MenuStripBackground         = _programSettings.Colors.MenuStripBackground;
            MenuStripText               = _programSettings.Colors.MenuStripText;
            MenuStripBackgroundSelected = _programSettings.Colors.MenuStripBackgroundSelected;

            LineColorBackground    = _programSettings.Colors.LineColorBackground;
            LineColorGeneric       = _programSettings.Colors.LineColorGeneric;
            LineColorIrcCommand    = _programSettings.Colors.LineColorIrcCommand;
            LineColorModeration    = _programSettings.Colors.LineColorModeration;
            LineColorSoundPlayback = _programSettings.Colors.LineColorSoundPlayback;

            CustomColorTable = new Extensions.OverridenColorTable();

            //Form Generic
            B_ColorFormBackground.DataBindings.Add("BackColor", this, "FormBackground");
            B_ColorFormText.DataBindings.Add("BackColor", this, "FormTextColor");

            //MenuStripBar
            B_ColorMenuBarBackground.DataBindings.Add("BackColor", this, "MenuStripBarBackground");
            B_ColorMenuBarText.DataBindings.Add("BackColor", this, "MenuStripBarText");

            //MenuStripElements
            B_ColorMenuStripBackground.DataBindings.Add("BackColor", this, "MenuStripBackground");
            B_ColorMenuStriptTextColor.DataBindings.Add("BackColor", this, "MenuStripText");
            B_ColorMenuStripSelectedBackground.DataBindings.Add("BackColor", this, "MenuStripBackgroundSelected");

            //Lines
            B_ColorLinesBackground.DataBindings.Add("BackColor", this, "LineColorBackground");
            B_ColorLinesGeneric.DataBindings.Add("BackColor", this, "LineColorGeneric");
            B_ColorLinesIrcCommand.DataBindings.Add("BackColor", this, "LineColorIrcCommand");
            B_ColorLinesModeration.DataBindings.Add("BackColor", this, "LineColorModeration");
            B_ColorLinesSoundPlayback.DataBindings.Add("BackColor", this, "LineColorSoundPlayback");

            //Overriding renderers
            UpdatePreviewColors();

            CB_Preset.SelectedIndex = 0;
        }