Beispiel #1
0
        private void teacherUpdateButton_Click(object sender, EventArgs e)
        {
            addTeacherObj = new AddTeacherClass();

            addTeacherObj.TeacherId     = teacherIdTextBox.Text;
            addTeacherObj.TeacherName   = teacherNameTextBox.Text;
            addTeacherObj.TeacherDesign = designationTextBox.Text;
            addTeacherObj.DeptName      = dNameComboBox.Text;


            if (teacherIdTextBox.Text == "" || teacherNameTextBox.Text == "" || designationTextBox.Text == "")
            {
                MessageBox.Show("Could not Update!");
            }
            else
            {
                gateways.UpdateTeacherInfoTable(addTeacherObj);
                MessageBox.Show("Information Updated Successfully!");
            }
        }