Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            this.MetroColor = Color.White;
            Office2007Colors.ApplyManagedColors(this, Color.Red);
            this.StartPosition = FormStartPosition.CenterScreen;
            this.ratingControl2.ResetButton.BackColor         = Color.White;
            this.ratingControl3.ResetButtonSettings.BackColor = Color.White;
            this.ratingControl4.ResetButtonSettings.BackColor = Color.White;
            using (Graphics g = CreateGraphics())
            {
                if (g.DpiX > 96)
                {
                    this.ratingControl2.Size = new Size(197, 28);
                    this.ratingControl3.Size = new Size(404, 28);
                    this.ratingControl4.Size = new Size(197, 28);
                    this.ratingControl2.ResetButtonSettings.Size = new Size(24, 16);
                    this.ratingControl3.ResetButtonSettings.Size = new Size(24, 16);
                    this.ratingControl4.ResetButtonSettings.Size = new Size(24, 16);
                }
            }

            #region Events
            this.ratingControl2.ResetButtonSettings.MouseEnter += new EventHandler(ResetButton_MouseEnter);
            this.ratingControl2.ResetButtonSettings.MouseLeave += new EventHandler(ResetButton_MouseLeave);
            this.ratingControl3.ResetButtonSettings.MouseEnter += new EventHandler(ResetButton_MouseEnter);
            this.ratingControl3.ResetButtonSettings.MouseLeave += new EventHandler(ResetButton_MouseLeave);
            this.ratingControl4.ResetButtonSettings.MouseEnter += new EventHandler(ResetButton_MouseEnter);
            this.ratingControl4.ResetButtonSettings.MouseLeave += new EventHandler(ResetButton_MouseLeave);
            this.ratingControl2.ResetButtonSettings.Paint      += new PaintEventHandler(ResetButton_Paint);
            this.ratingControl3.ResetButtonSettings.Paint      += new PaintEventHandler(ResetButton_Paint);
            this.ratingControl4.ResetButtonSettings.Paint      += new PaintEventHandler(ResetButton_Paint);
            this.ratingControl2.ValueChanging += new Syncfusion.Windows.Forms.Tools.ValueChangingEventHandler(ratingControl2_ValueChanging);
            this.ratingControl3.ValueChanging += new Syncfusion.Windows.Forms.Tools.ValueChangingEventHandler(ratingControl3_ValueChanging);
            #endregion
            this.Icon       = new Icon("..//..//icon_Zov_icon.ico");
            this.MetroColor = Color.White;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Change the theme for MessageBoxAdv.
 /// </summary>
 private void themeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.themeComboBox.SelectedItem.ToString() == "Default")
     {
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = true;
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Black")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Black;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Blue")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Blue;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Managed")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Managed;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         Office2007Colors.ApplyManagedColors(this, Color.Red);
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Silver")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Silver;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Black")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Black;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Blue")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Blue;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Managed")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Managed;
         Office2010Colors.ApplyManagedColors(this, Color.Brown);
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Silver")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Silver;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Metro")
     {
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Metro;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setMetroTheme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2013DarkGray")
     {
         MessageBoxAdv.Office2013Theme = Office2013Theme.DarkGray;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2013;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2013LightGray")
     {
         MessageBoxAdv.Office2013Theme = Office2013Theme.LightGray;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2013;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2013White")
     {
         MessageBoxAdv.Office2013Theme = Office2013Theme.White;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2013;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016Colorful")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.Colorful;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016DarkGray")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.DarkGray;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016White")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.White;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Change the theme for MessageBoxAdv.
 /// </summary>
 private void themeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.themeComboBox.SelectedItem.ToString() == "Default")
     {
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = true;
         SetDefaultTheme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#ffffff");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#ffffff");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#ffffff");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#ffffff");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#f2f2f2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#a6d8ff");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Black")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Black;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
         this.themeComboBox.ThemeName     = "Office2007Black";
         this.panel2.BackColor            = ColorTranslator.FromHtml("#444444");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#444444");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#d3d3d3");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#d3d3d3");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#d3d3d3");
         this.BackColor          = ColorTranslator.FromHtml("#444444");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#444444");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#d3d3d3");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#d3d3d3");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#444444");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#d3d3d3");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#444444");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#d3d3d3");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#444444");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#d3d3d3");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Blue")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Blue;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
         this.themeComboBox.ThemeName     = "Office2007Blue";
         this.panel2.BackColor            = ColorTranslator.FromHtml("#d8e8fe");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#d8e8fe");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#d8e8fe");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#d8e8fe");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#d8e8fe");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#d8e8fe");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#d8e8fe");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Managed")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Managed;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         Office2007Colors.ApplyManagedColors(this, Color.Red);
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#fad2da");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#fad2da");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#fad2da");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#fad2da");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#fad2da");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#fad2da");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#fad2da");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2007Silver")
     {
         MessageBoxAdv.Office2007Theme = Office2007Theme.Silver;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Default;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2007Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#cacfd9");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#cacfd9");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#cacfd9");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#cacfd9");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#cacfd9");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#cacfd9");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#cacfd9");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Black")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Black;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#7b7b7b");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#7b7b7b");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#ffffff");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#ffffff");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#ffffff");
         this.BackColor          = ColorTranslator.FromHtml("#7b7b7b");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#7b7b7b");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#ffffff");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#7b7b7b");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#7b7b7b");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#7b7b7b");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Blue")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Blue;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#b5d2fc");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#b5d2fc");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#b5d2fc");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#b5d2fc");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#b5d2fc");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#b5d2fc");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#b5d2fc");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Managed")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Managed;
         Office2010Colors.ApplyManagedColors(this, Color.Brown);
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#dbbbc9");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#dbbbc9");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#dbbbc9");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#dbbbc9");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#dbbbc9");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#dbbbc9");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#dbbbc9");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2010Silver")
     {
         MessageBoxAdv.Office2010Theme = Office2010Theme.Silver;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2010;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2010Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#d1d5de");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#d1d5de");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#d1d5de");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#d1d5de");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#d1d5de");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#d1d5de");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#d1d5de");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#fcf5d2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#ffdf6a");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Metro")
     {
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Metro;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setMetroTheme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#ffffff");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#ffffff");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor          = ColorTranslator.FromHtml("#ffffff");
         this.CaptionBarColor    = ColorTranslator.FromHtml("#ffffff");
         this.CaptionForeColor   = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.ReadOnlyEditorStyle.BackColor                      = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.ReadOnlyEditorStyle.ForeColor                      = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.Style.DropDownStyle.GripperBackColor                     = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.Style.DropDownStyle.GripperForeColor                     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.ItemStyle.BackColor               = ColorTranslator.FromHtml("#ffffff");
         this.themeComboBox.DropDownListView.Style.ItemStyle.ForeColor               = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverBackColor     = ColorTranslator.FromHtml("#f2f2f2");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.HoverForeColor     = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionBackColor = ColorTranslator.FromHtml("#a6d8ff");
         this.themeComboBox.DropDownListView.Style.SelectionStyle.SelectionForeColor = ColorTranslator.FromHtml("#000000");
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016Colorful")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.Colorful;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#fdfdfd");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#fdfdfd");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor                      = ColorTranslator.FromHtml("#fdfdfd");
         this.CaptionBarColor                = ColorTranslator.FromHtml("#fdfdfd");
         this.CaptionForeColor               = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor             = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.CanOverrideStyle = true;
         this.themeComboBox.ThemeName        = "Office2016Colorful";
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016DarkGray")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.DarkGray;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#d4d4d4");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#d4d4d4");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor                      = ColorTranslator.FromHtml("#d4d4d4");
         this.CaptionBarColor                = ColorTranslator.FromHtml("#d4d4d4");
         this.CaptionForeColor               = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor             = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.CanOverrideStyle = true;
         this.themeComboBox.ThemeName        = "Office2016DarkGray";
     }
     if (this.themeComboBox.SelectedItem.ToString() == "Office2016White")
     {
         MessageBoxAdv.Office2016Theme = Office2016Theme.White;
         MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Office2016;
         MessageBoxAdv.UseDefaultTheme = isDefaultTheme ? false : isDefaultTheme;
         setOffice2016Theme();
         this.panel2.BackColor            = ColorTranslator.FromHtml("#fdfdfd");
         this.tableLayoutPanel1.BackColor = ColorTranslator.FromHtml("#fdfdfd");
         this.label1.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.lbl_Description.ForeColor   = ColorTranslator.FromHtml("#000000");
         this.Resize.ForeColor            = ColorTranslator.FromHtml("#000000");
         this.BackColor                      = ColorTranslator.FromHtml("#fdfdfd");
         this.CaptionBarColor                = ColorTranslator.FromHtml("#fdfdfd");
         this.CaptionForeColor               = ColorTranslator.FromHtml("#000000");
         this.CaptionButtonColor             = ColorTranslator.FromHtml("#000000");
         this.themeComboBox.CanOverrideStyle = true;
         this.themeComboBox.ThemeName        = "Office2016White";
     }
 }