Пример #1
0
 private void doSc()
 {
     sc = new SCard();
     sc.Init();
     while (true)
     {
         if (!isCardScan)
         {
             cardNo = "";
             SCard.light(0x0000, 2);
             if ((cardNo = sc.searchCard()) == null)
             {
                 SCard.light(0x0000, 0);
             }
             else
             {
                 isCardScan = true;
             }
         }
         Thread.Sleep(500);
     }
 }
Пример #2
0
 private void SCardStart()
 {
     sc = new SCard();
     sc.Init();
     this.SCardTimer.Enabled = true;
     this.SCardTimer.Interval = 500;
     this.SCardTimer.Start();
 }