示例#1
0
        internal override sealed bool AddOptionCallback(PrintCapabilityOption baseOption)
        {
            bool added = false;

            PhotoPrintingIntentOption option = baseOption as PhotoPrintingIntentOption;

            // validate the option is complete before adding it to the collection
            if (option._optionName != null)
            {
                int enumValue = PrintSchemaMapper.SchemaNameToEnumValueWithArray(
                    PrintSchemaTags.Keywords.PagePhotoPrintingIntentKeys.PhotoIntentNames,
                    PrintSchemaTags.Keywords.PagePhotoPrintingIntentKeys.PhotoIntentEnums,
                    option._optionName);

                if (enumValue > 0)
                {
                    option._value = (PhotoPrintingIntent)enumValue;
                    this.PhotoPrintingIntentOptions.Add(option);
                    added = true;
                }
            }

            return(added);
        }
示例#2
0
        internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature)
        {
            PhotoPrintingIntentOption option = new PhotoPrintingIntentOption(baseFeature);

            return(option);
        }