/// <summary> /// Handles the ColorSelected event of the comboColorPicker control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="args">The <see cref="ColorSelectedEventArgs"/> instance containing the event data.</param> private void comboColorPicker_ColorSelected(object sender, ColorSelectedEventArgs args) { color = args.Color; colorName = args.ColorName; DialogResult = DialogResult.OK; }