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