Esempio n. 1
0
    private void ChangeColor(Color color)
    {
        Command command = new ChangeColorCommand(changeColorReceiver, color, objectTarget);

        command.Execute();
        InsertCommand(command);
    }
Esempio n. 2
0
        private void ChangeColor(EnumColor _textColor)
        {
            ChangeColorCommand ccc;

            ccc = new ChangeColorCommand(Editor, _textColor);
            Commands.Push(ccc);
            ccc.Execute();
        }