private void submtBT_Click(object sender, EventArgs e) { if (chkForm()) { bool gnd = mle.Checked; new DataBase().updateTeacher(nameBx.Text, mailBx.Text, gnd, dateTime.Value, instBx.Text, dptBx.Text); TeacherHomePage p1 = new TeacherHomePage(); p1.Show(); this.Hide(); new MesBox(p1, "Information Successfully Updated.. :)", true).Show(); } }
private void createtBT_Click(object sender, EventArgs e) { if (chkForm()) { Course aCourse = new Course(nameBx.Text, descTexBx.Text, Session.tc.userName); new DataBase().createCourse(aCourse); Session.tc.courseList.Clear(); Session.tc.getCourseList(); TeacherHomePage p1 = new TeacherHomePage(); p1.Show(); this.Hide(); new MesBox(p1, "Course successfully created.. :)", true).Show(); } }
private void button7_Click(object sender, EventArgs e) { TeacherHomePage tecPag = new TeacherHomePage(); tecPag.Show(); this.Hide(); }