コード例 #1
0
        public AlternateContentAddCommand CreateAlternateContentAddCommand(TreeNode treeNode, AlternateContent altContent)
        {
            AlternateContentAddCommand command = Create <AlternateContentAddCommand>();

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

            AlternateContentAddCommand otherz = other as AlternateContentAddCommand;

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

            // TODO: test local equality

            return(true);
        }