public static ComRenameNode SetCommand(Node node, string text) { var tmp = new ComRenameNode(); tmp._node = node; tmp._newName = text; return(tmp); }
public void RenameNode(Node node, string text) { if (text.Length == 0) { return; } NewOperation(); var com = ComRenameNode.SetCommand(node, text); com.Execute(); history.Add(com); }