private void comboBoxColor_DrawItem(object sender, DrawItemEventArgs e) { if (e.Index == -1) { return; } UtilColors.DrawColors(this.Items[e.Index], this.Font, _knownColors, e); }
private void ListBoxColor_DrawItem(object sender, DrawItemEventArgs e) { UtilColors.DrawColors(this.Items[e.Index], this.Font, _knownColors, e); }