Beispiel #1
0
        public void ChangeNodeFillColor(Node node, Color newColor)
        {
            NewOperation();
            var com = ComNodeFillColor.SetCommand(node, newColor);

            com.Execute();
            history.Add(com);
        }
Beispiel #2
0
        public static ComNodeFillColor SetCommand(Node node, Color newColor)
        {
            var tmp = new ComNodeFillColor();

            tmp._node     = node;
            tmp._oldColor = node.GetFillColor;
            tmp._newColor = newColor;
            return(tmp);
        }