/// <summary> /// Raises the color selected event. /// </summary> /// <param name="e">The <see cref="Genetibase.Shared.Controls.ColorBoxInternals.NuGenColorEventArgs"/> instance containing the event data.</param> protected virtual void OnColorSelected(NuGenColorEventArgs e) { EventHandler<NuGenColorEventArgs> handler = this.Events[_colorSelected] as EventHandler<NuGenColorEventArgs>; if (handler != null) { handler(this, e); } }
private void _colorBoxPopup_ColorSelected(object sender, NuGenColorEventArgs e) { this.SelectedColor = e.SelectedColor; this.CloseDropDown(); }