コード例 #1
0
        public void ChangeNodeBaseBorderColor(Color newColor)
        {
            NewOperation();
            var com = ComNodeBaseBorderColor.SetCommand(this, newColor);

            com.Execute();
            history.Add(com);
        }
コード例 #2
0
        public static ComNodeBaseBorderColor SetCommand(Graph curGraph, Color newColor)
        {
            var tmp = new ComNodeBaseBorderColor();

            tmp._curGraph = curGraph;
            tmp._oldColor = curGraph.BorderColor;
            tmp._newColor = newColor;
            return(tmp);
        }