Esempio n. 1
0
        internal override sealed bool AddOptionCallback(PrintCapabilityOption baseOption)
        {
            bool added = false;

            OutputColorOption option = baseOption as OutputColorOption;

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

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

            return(added);
        }
Esempio n. 2
0
        internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature)
        {
            OutputColorOption option = new OutputColorOption(baseFeature);

            return(option);
        }