public void ChangeNodeFillColor(Node node, Color newColor) { NewOperation(); var com = ComNodeFillColor.SetCommand(node, newColor); com.Execute(); history.Add(com); }
public static ComNodeFillColor SetCommand(Node node, Color newColor) { var tmp = new ComNodeFillColor(); tmp._node = node; tmp._oldColor = node.GetFillColor; tmp._newColor = newColor; return(tmp); }