コード例 #1
0
ファイル: BarcodeController.cs プロジェクト: Chulift/Barcode
        public void Dispose()
        {
            ReaderFactory.GetReader().EnableScanner();

            if (textBox != null)
            {
                textBox.Enabled = true;
                textBox.Focus();
            }
        }
コード例 #2
0
ファイル: BarcodeController.cs プロジェクト: Chulift/Barcode
        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();
        }
コード例 #3
0
ファイル: BarcodeController.cs プロジェクト: Chulift/Barcode
 public static void EnableScanner()
 {
     ReaderFactory.GetReader().EnableScanner();
 }
コード例 #4
0
ファイル: BarcodeController.cs プロジェクト: Chulift/Barcode
 public static void EnableTouchScreen()
 {
     ReaderFactory.GetReader().EnableTouchScreen();
 }