毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

C#高职计算机导论考试系统设计与实现(15)

时间:2016-11-22 23:24来源:毕业论文
// 记录登陆用户名和登陆类型 UserHelper.loginId = txtLoginId.Text; UserHelper.loginType = cboLoginType.Text; switch (cboLoginType.Text ) { case 教师: // 如果是教师,转到教师窗体


                    // 记录登陆用户名和登陆类型
                    UserHelper.loginId = txtLoginId.Text;
                    UserHelper.loginType = cboLoginType.Text;

                    switch (cboLoginType.Text )
                    {
                        case "教师":
                            // 如果是教师,转到教师窗体
                            TeacherForm teacherForm = new TeacherForm();
                            teacherForm.Show();
                            this.Visible = false;
                            break;
                        case "学生":
                            // 如果是学生,转到学生窗体
                            StudentForm studentForm = new StudentForm();
                            studentForm.Show();
                            this.Visible = false;
                            break;
                    }
                }                
                else    // 验证合法用户失败,给出提示
                {
                    MessageBox.Show(message,"登陆提示",
                         MessageBoxButtons.OK,MessageBoxIcon.Warning);
                }                C#高职计算机导论考试系统设计与实现(15):http://www.youerw.com/jisuanji/lunwen_181.html
------分隔线----------------------------
推荐内容