Exemple #1
0
 private void CoachBrowser_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         IDCardConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <IDCardConfig>();
         if (config.UseIDCard)
         {
             reader = new IDCardReaderHelper(new De_ReadICCardComplete(this.AfterReadIdCard));
         }
     }
 }
Exemple #2
0
 private void StudentBrowser_Load(object sender, EventArgs e)
 {
     if (!this.DesignMode)
     {
         IDCardConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <IDCardConfig>();
         if (config.UseIDCard)
         {
             reader = new IDCardReaderHelper(new De_ReadICCardComplete(AfterReadIdCard));
         }
         AllPrinterConfig printconfig = AllPrinterConfig.GetPrinterConfig();
         if (printconfig.SysConfig.DefaultEye != null && printconfig.SysConfig.DefaultEye.Length != 0)
         {
             try
             {
                 this.txtLeftEye.Text = this.txtRightEye.Text = printconfig.SysConfig.DefaultEye;
             }
             catch (System.Exception exe)
             {
             }
         }
         this.txtDescription.KeyDown -= new KeyEventHandler(FormHelper.EnterToTab);
         this.InitAllAddress();
     }
 }
Exemple #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     reader = new IDCardReaderHelper(new De_ReadICCardComplete(AfterReadIdCard));
 }