public ReturnForm() { InitializeComponent(); //turetu is duomenu bazes sukrauti itemus ir issaugoti sarase + dataHelper = new ItemDataHelper(); materials = dataHelper.GetAllMaterials(); eaDataHelper = new EventAccountDataHelper(); phidgetScanner = new PhidgetHandler(); customerRFID = null; invoiceDataHelper = new InvoiceDataHelper(); //Activate and Open RFID + try { phidgetScanner.OpenRFIDReader(); phidgetScanner.myRFIDReader.Tag += new TagEventHandler(ChangeTagOnForm); } catch { MessageBox.Show("No RFID reader detected."); } }