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)); } } }
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(); } }
private void button1_Click(object sender, EventArgs e) { reader = new IDCardReaderHelper(new De_ReadICCardComplete(AfterReadIdCard)); }