private void btnDengLu_Click(object sender, EventArgs e) { dengluyonghuID = Convert.ToInt32(cbo_YongHuMing.SelectedValue); 用户名称 = cbo_YongHuMing.Text.Trim(); if (cbo_YongHuMing.Text != null /*&& txtYanZhengMa.Text != null*/ && txtYonHuMiMa.Text != null) { //if (txtYanZhengMa.Text.ToLower() == yanzhengma.ToLower()) //{ int UserID = Convert.ToInt32(cbo_YongHuMing.SelectedValue); DataTable dt = myUSER_DENGLUClient.SelectMiMaBYyonghu(UserID).Tables[0]; string mima = dt.Rows[0]["Password"].ToString().Trim(); yonghuleixing = Convert.ToInt32(dt.Rows[0]["UserTypeID"]); if (txtYonHuMiMa.Text == mima) { FRM_Main 没有 = new FRM_Main(); 没有.ShowDialog(); } else { MessageBox.Show("密码错误啦"); } //} //else { MessageBox.Show("请输入正确的验证码"); } } }
private void timer2_Tick(object sender, EventArgs e) { if (Util.KingFaceDetect.name == "陈文武") { timer2.Stop(); FRM_Main 没有 = new FRM_Main(); 没有.ShowDialog(); this.Visible = false; } }