예제 #1
0
 void daemonThread_CardError(object sender, SmartCardReader.CardEventArgs <string> e)
 {
     //  daemonThread_EjectCard(sender, e);
     if (!writing)
     {
         CatelMediator.SendMessage <long>(0, MsgTag.IdCardError);
     }
 }
예제 #2
0
 void daemonThread_InsertCard(object sender, SmartCardReader.CardEventArgs <string> e)
 {
     lock (_locker)
     {
         CardNumber = e.Value;
         Monitor.PulseAll(_locker);
         if (!writing)
         {
             CatelMediator.SendMessage(true, MsgTag.ClosePinWindow);
             CatelMediator.SendMessage <string>(e.Value, MsgTag.CardInserted);
         }
     }
 }