예제 #1
0
        //public AlternateContentMetadataSetIdCommand CreateAlternateContentMetadataSetIdCommand(AlternateContentProperty altContentProperty, AlternateContent altContent, Metadata metadata, bool id)
        //{
        //    AlternateContentMetadataSetIdCommand command = Create<AlternateContentMetadataSetIdCommand>();
        //    command.Init(altContentProperty, altContent, metadata, id);
        //    return command;
        //}
        public AlternateContentMetadataSetNameCommand CreateAlternateContentMetadataSetNameCommand(AlternateContentProperty altContentProperty, AlternateContent altContent, MetadataAttribute metadataAttribute, string name)
        {
            AlternateContentMetadataSetNameCommand command = Create <AlternateContentMetadataSetNameCommand>();

            command.Init(altContentProperty, altContent, metadataAttribute, name);
            return(command);
        }
예제 #2
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            AlternateContentMetadataSetNameCommand otherz = other as AlternateContentMetadataSetNameCommand;

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

            // TODO: test local equality

            return(true);
        }