public void Dispose() { ReaderFactory.GetReader().EnableScanner(); if (textBox != null) { textBox.Enabled = true; textBox.Focus(); } }
public BarcodeController(object textBox) { if (textBox != null && textBox.GetType() == typeof(System.Windows.Forms.TextBox)) { this.textBox = (System.Windows.Forms.TextBox)textBox; this.textBox.Enabled = false; } ReaderFactory.GetReader().DisableScanner(); }
public static void EnableScanner() { ReaderFactory.GetReader().EnableScanner(); }
public static void EnableTouchScreen() { ReaderFactory.GetReader().EnableTouchScreen(); }