コード例 #1
0
        public TreeNodeRemoveCommand CreateTreeNodeRemoveCommand(TreeNode treeNode)
        {
            TreeNodeRemoveCommand command = Create <TreeNodeRemoveCommand>();

            command.Init(treeNode);
            return(command);
        }
コード例 #2
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            TreeNodeRemoveCommand otherz = other as TreeNodeRemoveCommand;

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

            // TODO: test local equality

            return(true);
        }