Exemplo n.º 1
0
        public TreeNodeChangeTextCommand CreateTreeNodeChangeTextCommand(TreeNode treeNode, string text)
        {
            TreeNodeChangeTextCommand command = Create <TreeNodeChangeTextCommand>();

            command.Init(treeNode, text);
            return(command);
        }
Exemplo n.º 2
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            TreeNodeChangeTextCommand otherz = other as TreeNodeChangeTextCommand;

            if (otherz == null)
            {
                return(false);
            }

            // TODO: test local equality

            return(true);
        }