public ScanTextBox() { InitializeComponent(); try { scaner = new Scaner(); scaner.ScanerDataReceived += scaner_ScanerDataReceived; scaner.Open(); } catch{} }
public void ContinuousRead() { if (!isOpen) { return; } bContinuousRead = true; sender = this; scanEvent.Set(); }
public bool Read() { if (!isOpen) { return false; } bContinuousRead = false; sender = this; scanEvent.Set(); return true; }