public static SetColor ( int red, int green, int blue ) : void | ||
red | int | |
green | int | |
blue | int | |
return | void |
protected override void OnClick() { if (_colorPalette.IsColorSelected() == true) { ColorSelection.SetColor(_colorPalette.Red, _colorPalette.Green, _colorPalette.Blue); } }
public ColorCommand() { _colorPalette = new ColorPalette(); ColorSelection.SetColor(_colorPalette.Red, _colorPalette.Green, _colorPalette.Blue); }