/// <summary> /// Initializes a new instance of the <see cref="BarcodeReaderToolItem"/> class. /// </summary> /// <param name="visualTool">The visual tool.</param> /// <param name="text">The action text.</param> /// <param name="toolTip">The action tool tip.</param> /// <param name="icon">The action icon.</param> /// <param name="subactions">The sub-actions of the action.</param> public BarcodeReaderToolAction( BarcodeReaderTool visualTool, string text, string toolTip, Image icon, params VisualToolAction[] subactions) : base(visualTool, text, toolTip, icon, subactions) { #if !REMOVE_BARCODE_SDK visualTool.ReaderSettings.AutomaticRecognition = true; visualTool.ReaderSettings.ScanDirection = ScanDirection.Horizontal | ScanDirection.Vertical; visualTool.ReaderSettings.ScanBarcodeTypes = BarcodeType.Code128 | BarcodeType.Code39; #endif }
public BarcodeReaderToolForm(BarcodeReaderTool readerTool) : this() { #if !REMOVE_BARCODE_SDK _readerTool = readerTool; _readerTool.RecognitionStarted += new EventHandler(readerTool_RecognitionStarted); _readerTool.RecognitionProgress += new EventHandler <BarcodeReaderProgressEventArgs>(readerTool_RecognitionProgress); _readerTool.RecognitionFinished += new EventHandler(readerTool_RecognitionFinished); barcodeReaderSettingsControl1.RestoreSettings(_readerTool.ReaderSettings); recognitionResultsTextBox.AppendText(string.Format("VintaSoftBarcode.NET SDK v{0}", Vintasoft.Barcode.BarcodeGlobalSettings.AssemblyVersion)); if (Vintasoft.Barcode.BarcodeGlobalSettings.IsDemoVersion) { recognitionResultsTextBox.AppendText(" (Demo Version)"); } #endif }