void ciscovaluechanged(ColorSpaceControl sender) { _bypassCisco = true; if (sender is ColorSpaceControlRGB) { cscHsl.hsl = ColorConverter.RgbToHsl(cscRgb.rgb); } else { cscRgb.rgb = ColorConverter.HslToRgb(cscHsl.hsl); } _bypassCisco = false; _bypassHecate = true; tb_Hecate.Text = cscRgb.GetHecate(); _bypassHecate = false; GetActiveColorbox().BackColor = Color.FromArgb(_alpha, ColorConverter.RgbToCol(cscRgb.rgb)); colorslider.SetSliderVal(); UpdateField(); if (ColorChanged != null) { ColorChanged(); } }
void ChangeColorspace(ColorSpaceControl csc, bool setPoint) { _csc = csc; if (setPoint) { CalculatePoint(); SelectColor(); } Refresh(); }
void ciscoselected(ColorSpaceControl sender) { if (sender is ColorSpaceControlRGB) { cscHsl.DeselectCiscos(); } else { cscRgb.DeselectCiscos(); } colorslider.Configurate(_csc = sender); UpdateField(); }
internal void Configurate(ColorSpaceControl csc) { _csc = csc; Invalidate(_grad); SetSliderVal(); }
internal void ChangeField(int ciscoval, ColorSpaceControl csc, bool setPoint) { _ciscoval = ciscoval; ChangeColorspace(csc, setPoint); }
internal void ChangeField(Color slidecol, ColorSpaceControl csc, bool setPoint) { _slidecol = slidecol; ChangeColorspace(csc, setPoint); }