public Form1() { InitializeComponent(); this.simpleRackScanControl1.RackScanned += SimpleRackScanControl1_RackScanned; _BCW = new BarCodeWatcher(); _BCW.CodeRead += _BCW_CodeRead; ShowMessage("Select store or check mode"); }
public frmMain() { InitializeComponent(); DataInterface di = new DataInterface(Global.SAMPLE_CONNECTION); this.tubeValidationControl1.Bind(di); this.flowTubeListDisplayControl1.Bind(di); Conductor.Devices.BarcodeScanner.BarCodeWatcher bcw = new BarCodeWatcher(Global.USB_SCANNER_CONFIG); bcw.CodeRead += new BarCodeWatcher.CodeReadHandler(bcw_CodeRead); // tubeValidationControl1.ShowMessage("Welcome to the tube checker. Scan first tube of a rack/manifest to begin."); this.flowTubeListDisplayControl1.RefreshData(); this.tubeValidationControl1.DatabaseUpdated += new TubeValidationControl.DatabaseUpdatedEventHandler(tubeValidationControl1_DatabaseUpdated); UpdateTubeLimits(); // System.IO.FileSystemWatcher fsw = new FileSystemWatcher(@"\\plmfs1\plmlabs\Helix Automation\PROD\Flow Cytometry"); // fsw.IncludeSubdirectories = true; // fsw.Created += new FileSystemEventHandler(fsw_Created); // fsw.EnableRaisingEvents = true; }