Ejemplo n.º 1
0
        private void btnUpdate_teacher_Click(object sender, EventArgs e)
        {
            Giao_Vienn Teacher = new Giao_Vienn()
            {
                Ho_Ten    = txtFull_name_teacher.Text,
                Tai_Khoan = txtUserName_teacher.Text,
                Mat_Khau  = txtUserName_teacher.Text,
                CMND_TCC  = txtCMND_TCC_teacher.Text,
                Lop       = null,
                Khoi      = listGrades[Grade_CBB.SelectedIndex].GradeID,
                Email     = txtMail_teacher.Text,
                SDT       = txtSDT_teacher.Text,
                Ngay_Sinh = DateTime.Parse(dtTeacher_Picker.Value.ToString())
            };

            BUS_Admin.UpdateTeacher(Teacher, Teacher_User_Account);
        }