/// <summary> /// This is where the phidget imlpementation is made below. /// </summary> private void btnActivateRFID_Click(object sender, EventArgs e) { if (currentAccount != null) { if (phidgetScanner.RFIDtagNr != null) { if (accountHelper.CheckIn(currentAccount.AccountId, phidgetScanner.RFIDtagNr))//this method updates the rfid //of the visitor in the database { currentAccount.ActivateRFID(phidgetScanner.RFIDtagNr);//this method gives the currentAccount the scanned //RFID number label16.Text = currentAccount.RFID; lblcurrentStatus.Text = String.Format("RFID: {0} has been assigned to event account id: {1}" , phidgetScanner.RFIDtagNr, currentAccount.AccountId); } } else { lblcurrentStatus.Text = "Please scan an RFID."; } } else { lblcurrentStatus.Text = "Please enter an Event Account Id first and/or scan an RFID."; } }