예제 #1
0
        public static ComRenameNode SetCommand(Node node, string text)
        {
            var tmp = new ComRenameNode();

            tmp._node    = node;
            tmp._newName = text;
            return(tmp);
        }
예제 #2
0
        public void RenameNode(Node node, string text)
        {
            if (text.Length == 0)
            {
                return;
            }
            NewOperation();
            var com = ComRenameNode.SetCommand(node, text);

            com.Execute();
            history.Add(com);
        }