Пример #1
0
        public void ChangeNodeBorderColor(Node node, Color newColor)
        {
            NewOperation();
            var com = ComNodeBorderColor.SetCommand(node, newColor);

            com.Execute();
            history.Add(com);
        }
Пример #2
0
        public static ComNodeBorderColor SetCommand(Node node, Color newColor)
        {
            var tmp = new ComNodeBorderColor();

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