Esempio n. 1
0
        private void BtnAddTeacher_Click(object sender, EventArgs e)
        {
            TeacherAddUpdate form = new TeacherAddUpdate(null);

            form.UpdateOrAdd("Add");
            form.ShowDialog();
            dtgvTeacher.DataSource = teacherList;
            LoadTeachers();
        }
Esempio n. 2
0
        private void BtnUpdateTeacher_Click(object sender, EventArgs e)
        {
            error.Clear();
            if (dtgvTeacher.SelectedRows.Count == 0)
            {
                error.SetError(btnUpdateTeacher, "Vui lòng chọn giáo viên");
                return;
            }
            TeacherAddUpdate form = new TeacherAddUpdate(checkMGV);

            form.UpdateOrAdd("Update");
            form.ShowDialog();
        }