Пример #1
0
 private void StopCardScanner()
 {
     if (cardApp != null)
     {
         cardApp.CancelTransactionRequest();
         cardApp = null;
     }
 }
Пример #2
0
 private void StartCardScanner()
 {
     try
     {
         if (cardApp == null)
         {
             cardApp = new GPPersoTerminalApplication(new CardQProcessor(cardInterfaceManger, SessionSingleton.DeviceId));
             cardApp.UserInterfaceRequest += Ta_UserInterfaceRequest;
             cardApp.ProcessCompleted     += Ta_ProcessCompleted;
             cardApp.ExceptionOccured     += Ta_ExceptionOccured;
         }
     }
     catch (Exception ex)
     {
         SetStatusLabel(ex.Message);
     }
 }
Пример #3
0
        private void StartCardScanner()
        {
            try
            {
                string xml = File.ReadAllText(txtXMLPath.Text);

                cardApp = new GPPersoTerminalApplication(new CardQProcessor(cardInterfaceManger, SessionSingleton.DeviceId));
                cardApp.UserInterfaceRequest += Ta_UserInterfaceRequest;
                cardApp.ProcessCompleted     += Ta_ProcessCompleted;
                cardApp.ExceptionOccured     += Ta_ExceptionOccured;
                cardApp.DoXMLPerso(xml, txtSecurityDomain.Text, txtMasterKey.Text);
            }
            catch (Exception ex)
            {
                SetStatusLabel(ex.Message);
            }
        }