void CheckedListBox1SelectedIndexChanged(object sender, EventArgs e) { var ci = checkedListBox1.CheckedItems; if (ci.Count > 0) { if (ci[0].Equals(ColorUtils.ColorSpaces.HSV)) { chk = ColorUtils.ColorSpaces.HSV; NegativeHueScroll(sender, e); } if (ci[0].Equals(ColorUtils.ColorSpaces.HSL)) { chk = ColorUtils.ColorSpaces.HSL; NegativeHueScroll(sender, e); } if (ci[0].Equals(ColorUtils.ColorSpaces.XYZ)) { chk = ColorUtils.ColorSpaces.XYZ; NegativeHueScroll(sender, e); } if (ci[0].Equals(ColorUtils.ColorSpaces.Lab)) { chk = ColorUtils.ColorSpaces.Lab; NegativeHueScroll(sender, e); } } }
public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); chk = ColorUtils.ColorSpaces.HSV; checkedListBox1.Items.Add(ColorUtils.ColorSpaces.HSV); checkedListBox1.Items.Add(ColorUtils.ColorSpaces.HSL); checkedListBox1.Items.Add(ColorUtils.ColorSpaces.Lab); checkedListBox1.Items.Add(ColorUtils.ColorSpaces.XYZ); // // TODO: Add constructor code after the InitializeComponent() call. // }