Example #1
0
 public IDCardReaderHelper()
 {
     config = StaticCacheManager.GetConfig<IDCardConfig>();
     reader = new IDCardReader();
     timer = new Timer();
     timer.Interval = config.MiniSecond;
     timer.Tick += new EventHandler(timer_Tick);
 }
Example #2
0
 public IDCardReaderHelper()
 {
     config         = StaticCacheManager.GetConfig <IDCardConfig>();
     reader         = new IDCardReader();
     timer          = new Timer();
     timer.Interval = config.MiniSecond;
     timer.Tick    += new EventHandler(timer_Tick);
 }
Example #3
0
 public IDCardReaderHelper(De_ReadICCardComplete completeDelegate, int minisecond)
 {
     reader = new IDCardReader();
     timer = new Timer();
     timer.Interval = minisecond;
     timer.Tick += new EventHandler(timer_Tick);
     reader.ReadICCardComplete += completeDelegate;
     this.completeDelegate = completeDelegate;
     timer.Start();
 }
Example #4
0
 public IDCardReaderHelper(De_ReadICCardComplete completeDelegate, int minisecond)
 {
     reader                     = new IDCardReader();
     timer                      = new Timer();
     timer.Interval             = minisecond;
     timer.Tick                += new EventHandler(timer_Tick);
     reader.ReadICCardComplete += completeDelegate;
     this.completeDelegate      = completeDelegate;
     timer.Start();
 }
Example #5
0
 public IDCardReaderHelper(De_ReadICCardComplete completeDelegate)
 {
     config=StaticCacheManager.GetConfig<IDCardConfig>();
     reader = new IDCardReader();
     timer = new Timer();
     timer.Interval = config.MiniSecond;
     timer.Tick += new EventHandler(timer_Tick);
     reader.ReadICCardComplete += completeDelegate;
     this.completeDelegate = completeDelegate;
     timer.Start();
 }
Example #6
0
 public IDCardReaderHelper(De_ReadICCardComplete completeDelegate)
 {
     config                     = StaticCacheManager.GetConfig <IDCardConfig>();
     reader                     = new IDCardReader();
     timer                      = new Timer();
     timer.Interval             = config.MiniSecond;
     timer.Tick                += new EventHandler(timer_Tick);
     reader.ReadICCardComplete += completeDelegate;
     this.completeDelegate      = completeDelegate;
     timer.Start();
 }
Example #7
0
        public IdCardTest()
        {
            bindControlDelegate = new BindControlDelegate(Read);
            timer = new Timer();
            timer.Interval = 500;
            timer.Tick += new EventHandler(timer_Tick);
            InitializeComponent();
            reader = new IDCardReader();

            reader.ReadICCardComplete += new De_ReadICCardComplete(reader_ReadICCardComplete);
            cvReader = new CV100UReader();
            cvReader.AfterReadICCardComplete += new CV100UReader.ReadICCardComplete(cvReader_AfterReadICCardComplete);
        }