private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (student.studentID == 0)
            {
                MessageBox.Show("Student Not Selected.");
                return;
            }

            AddStudentForm addStudentForm = new AddStudentForm(userAccount, student.studentID);

            addStudentForm.ShowDialog(this);
            dataGridViewStudent.Rows.Clear();
            student.GetAllStudentList(dataGridViewStudent);
        }
Exemplo n.º 2
0
        private void addStudentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddStudentForm addStudentForm = new AddStudentForm(userAccount);

            addStudentForm.ShowDialog(this);
        }