private void HSLValueChanged(object sender, System.EventArgs e) { if (!this.updating) { this.updating = true; UpdateRGB(ColorSpaceHelper.HSLtoRGB((double)this.hueUD.Value, (double)this.satUD.Value / 100.0, (double)this.lumUD.Value / 100.0)); UpdateHSB(ColorSpaceHelper.RGBtoHSB((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value)); UpdateCMYK(ColorSpaceHelper.RGBtoCMYK((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value)); UpdateYUV(ColorSpaceHelper.RGBtoYUV((int)redUD.Value, (int)greenUD.Value, (int)blueUD.Value)); this.updating = false; } }