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

            PageOrderOption option = baseOption as PageOrderOption;

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

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

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

            return(option);
        }