//点击选择老师 public void pictureBox_SelectTeacher_Click(object sender, EventArgs e) { //http://172.18.201.3:8989/user.do?action=login&courseid=12&callback=angular.callbacks._8 PictureBox box = (PictureBox)sender; string name = box.Name; int courseid = int.Parse(name); foreach (User u in Global.g_TeacherArray) { if (u.courseid == courseid) { Dictionary <String, String> pList = new Dictionary <String, String>(); pList.Add("courseid", "" + courseid); Httpd.handleLogin(pList, ""); //TODO:WQ 开始上课 EService.ShowSelectTeacher(false, 1); //调用控制栏 Form1.ShowController(true); } } }
public void LessonOver() { EService.ShowSelectTeacher(true, 2); }
private void pictureBox2_Click(object sender, EventArgs e) { //TODO:WQ 开始上课 EService.ShowSelectTeacher(true, 1); this.Hide(); }