//sends the scan to the ScanValidator
 //and recieves the result back
 private void GetValidation()
 {
     ScanValidator validator= new ScanValidator(scan);
     bool valid = validator.Permission;
     if (valid)
     {
         doorStatus = "Open";
     }
 }
        //sends the scan to the ScanValidator
        //and recieves the result back
        private void GetValidation()
        {
            ScanValidator validator = new ScanValidator(scan);
            bool          valid     = validator.Permission;

            if (valid)
            {
                doorStatus = "Open";
            }
        }