private void kbtnSaveColour_Click(object sender, EventArgs e) { if (klstCustomColourSelector.SelectedItem.ToString() == "Border Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.BORDERCOLOUR, pbxColourPreview.BackColor); //if (_globalBooleanSettingsManager.GetDisableListItem()) //{ //} } else if (klstCustomColourSelector.SelectedItem.ToString() == "Alternative Normal Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.ALTERNATIVENORMALTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Normal Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.NORMALTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Disabled Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.DISABLEDTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Focused Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.FOCUSEDTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Pressed Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.PRESSEDTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Link Normal Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.LINKNORMALTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Link Hover Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.LINKHOVERTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Link Visited Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.LINKVISITEDTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Disabled Control Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.DISABLEDCONTROLCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Colour One") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMCOLOURONE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Colour Two") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMCOLOURTWO, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Colour Three") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMCOLOURTHREE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Colour Four") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMCOLOURFOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Colour Five") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMCOLOURFIVE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Menu Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.MENUTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Text Colour One") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMTEXTCOLOURONE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Text Colour Two") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMTEXTCOLOURTWO, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Text Colour Three") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMTEXTCOLOURTHREE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Text Colour Four") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMTEXTCOLOURFOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Custom Text Colour Five") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.CUSTOMTEXTCOLOURFIVE, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Status Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.STATUSTEXTCOLOUR, pbxColourPreview.BackColor); } else if (klstCustomColourSelector.SelectedItem.ToString() == "Ribbon Tab Text Colour") { ColourUtilities.DefineCustomColour(MiscellaneousColourDefinitions.RIBBONTABTEXTCOLOUR, pbxColourPreview.BackColor); } kbtnSaveColour.Enabled = false; }