public static bool SetBarcodeReadOptions(BarcodeReader reader) { // See if we have an options file in the config var value = GetSettingValue(Key_Barcodes_Reader_OptionsFilePath); value = GetAbsolutePath(value); if (string.IsNullOrEmpty(value)) { // Return false to indicate that the user did not set any barcode options. // We will try different options ourselves. return(false); } reader.LoadOptions(value); return(true); }