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

            CollateOption option = baseOption as CollateOption;

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

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

            return(added);
        }
コード例 #2
0
        internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature)
        {
            CollateOption option = new CollateOption(baseFeature);

            return(option);
        }