コード例 #1
0
        public AlternateContentMetadataAddCommand CreateAlternateContentMetadataAddCommand(TreeNode treeNode, AlternateContentProperty altContentProperty, AlternateContent altContent, Metadata metadata, MetadataAttribute metadataAttribute)
        {
            AlternateContentMetadataAddCommand command = Create <AlternateContentMetadataAddCommand>();

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

            AlternateContentMetadataAddCommand otherz = other as AlternateContentMetadataAddCommand;

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

            // TODO: test local equality

            return(true);
        }