菜单
  

                }
            }

            // 验证用户的输入,成功返回 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 == "教师")
  1. 上一篇:ASP.net房屋租赁管理系统设计与实现
  2. 下一篇:C#高职计算机导论考试系统设计与实现
  1. jsp计算机学院学生就业及...

  2. Java航空订票系统设计

  3. 计算机音乐分类辨识研究

  4. asp.net+sqlserver计算机在线考...

  5. ASP.NET企业网站建设

  6. ASP.NET+SQLServer计算机课程辅...

  7. 计算机病毒的解析与防范

  8. 酸性水汽提装置总汽提塔设计+CAD图纸

  9. 十二层带中心支撑钢结构...

  10. 乳业同业并购式全产业链...

  11. java+mysql车辆管理系统的设计+源代码

  12. 电站锅炉暖风器设计任务书

  13. 大众媒体对公共政策制定的影响

  14. 河岸冲刷和泥沙淤积的监测国内外研究现状

  15. 杂拟谷盗体内共生菌沃尔...

  16. 中考体育项目与体育教学合理结合的研究

  17. 当代大学生慈善意识研究+文献综述

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回