예제 #1
0
 public SetUserForm()
 {
     InitializeComponent();
     label3.Text = string.Empty;
     label4.Text = string.Empty;
     dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     idcardinfo = new CIDCardInfo();
     idcardinfo.InitIDcardDev();
     idcardinfo.Start();
     idcardinfo.OnIDCardReceived += new CIDCardInfo.IDCardRequest(idcardinfo_OnIDCardReceived);
     userinvoke = new InvokeDelegate(userinvokefun);
 }
예제 #2
0
 public CModel(ModuleSettings settings)
 {
     // config = new ModuleConfig();
     this.settings = settings;
     idcardinfo    = new CIDCardInfo();
     idcardinfo.InitIDcardDev();
     idcardinfo.Start();
     idcardinfo.OnIDCardReceived += new CIDCardInfo.IDCardRequest(idcardinfo_OnIDCardReceived);
     findandsavestudent           = new CFindAndSaveStudent(this);
     findandsavestudent.OpenLink();
     ksdevmanager = new CKsDevManager(this);
     myprint      = new CPrintContent(this);
 }
예제 #3
0
        public string dq_sfzhm; //用户序列号

        public Login_Form()
        {
            InitializeComponent();
            ModuleSettings settings = ModuleConfig.GetSettings();

            if (settings.Useidcard == 1)
            {
                textBox1.Enabled = false;
                textBox2.Enabled = false;
            }
            userclass  = 1;
            invokeform = new InvokeDelegate(invokeformfun);
            idcardinfo = new CIDCardInfo();
            idcardinfo.InitIDcardDev();
            idcardinfo.OnIDCardReceived += new CIDCardInfo.IDCardRequest(idcardinfo_OnIDCardReceived);
            idcardinfo.Start();
        }