예제 #1
0
 //populates the scan
 private void CreateScan()
 {
     scan = new Scan();
     scan.CardNumber = cardNumber;
     scan.ScanDateTime = scanDateTime;
     scan.ScannerNumber = scannerNumber;
     scan.DoorStatus = DoorStatus;
 }
예제 #2
0
 public Scanner(string card, string scanNumber, string status)
 {
     //the constructor populates most of the
     //values needed for the scan
     cardNumber = card;
     scannerNumber = scanNumber;
     scanDateTime = DateTime.Now;
     doorStatus = status;
     scan = null;
     //calls CreateScan and GetValidation methods
     CreateScan();
     GetValidation();
 }
예제 #3
0
 public ScanValidator(Scan s)
 {
     scan = s;
     try
     {
         //sets the permission based on validate scan
         permission = ValidateScan();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //calls the method to write the entry to a log
     LogEntry();
 }