internal override sealed bool AddOptionCallback(PrintCapabilityOption baseOption) { bool added = false; StaplingOption option = baseOption as StaplingOption; // Validate the option is complete before adding it to the collection if (option._optionName != null) { int enumValue = PrintSchemaMapper.SchemaNameToEnumValueWithArray( PrintSchemaTags.Keywords.StapleKeys.StaplingNames, PrintSchemaTags.Keywords.StapleKeys.StaplingEnums, option._optionName); if (enumValue > 0) { option._value = (Stapling)enumValue; this.StaplingOptions.Add(option); added = true; } } return(added); }
internal override sealed PrintCapabilityOption NewOptionCallback(PrintCapabilityFeature baseFeature) { StaplingOption option = new StaplingOption(baseFeature); return(option); }