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

            DuplexOption option = baseOption as DuplexOption;

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

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

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

            return(option);
        }