}
        }
        // 验证用户的输入,成功返回 True,失败返回 False
        private bool ValidateInput()
        {
            if (txtLoginId.Text.Trim() == "")
            {
                MessageBox.Show("请输入用户名", "登录提示",
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtLoginId.Focus();
                return false;
            }
            else if (txtLoginPwd.Text.Trim() == "")
            {
                MessageBox.Show("请输入密码", "登录提示",
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                txtLoginPwd.Focus();
                return false;
            }
            else if (cboLoginType.Text.Trim() == "")
            {
                MessageBox.Show("请选择登陆类型", "登录提示",
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
                cboLoginType.Focus();
                return false;
            }
            else
            {
                return true;
            }
        }
        // 验证用户是否合法
        // 传入用户名、密码、登陆类型。合法返回 True,不合法返回 False
        // messasge 参数用来记录验证失败的原因
        private bool ValidateUser(string loginId, string loginPwd,
                             string loginType, ref string message)
        {
            if (loginType == "教师")
		
- 上一篇:C#高职计算机导论考试系统设计与实现 
- 下一篇:《计算机网络》课程通用题库管理系统设计与实现 
- 
- 
- 
- 
- 
- 
- 
- 酸性水汽提装置总汽提塔设计+CAD图纸
- 中考体育项目与体育教学合理结合的研究
- 乳业同业并购式全产业链...
- 河岸冲刷和泥沙淤积的监测国内外研究现状
- 电站锅炉暖风器设计任务书
- 大众媒体对公共政策制定的影响
- 当代大学生慈善意识研究+文献综述
- 杂拟谷盗体内共生菌沃尔...
- java+mysql车辆管理系统的设计+源代码
- 十二层带中心支撑钢结构...