using System; using System.Drawing; using System.Text; namespace DevComponents.DotNetBar { /// /// Defines the event arguments class for ColorPickerDropDown ColorPreview event. /// public class ColorPreviewEventArgs : EventArgs { /// /// Gets the color that is being previewed. /// public Color Color = Color.Empty; /// /// Gets the ColorItem if available for the color being previewed. This property can be null if there is no ColorItem connected with the color. /// public ColorItem ColorItem = null; /// /// Creates new instance of the object. /// /// Color being previewed. /// ColorItem connected with the color. public ColorPreviewEventArgs(Color c, ColorItem ci) { this.Color = c; this.ColorItem = ci; } } /// /// Defines delegate for ColorPreview event. /// public delegate void ColorPreviewEventHandler(object sender, ColorPreviewEventArgs e); }