private void button1_Click(object sender, EventArgs e)
        {
            ClassFile      obj = new ClassFile("students.dat");
            List <Student> std = obj.ReadStudent();

            DataGridViewUtils.StudentToGrid(std, dataStudent);
        }
        private void fillRandomButton_Click(object sender, EventArgs e)
        {
            int n = dataStudent.RowCount;
            WorkWithStudents2 obj = new WorkWithStudents2();

            DataGridViewUtils.StudentToGrid(obj.GetRamdom(n), dataStudent);
        }
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         ClassFile      obj      = new ClassFile(openFileDialog1.FileName);
         List <Student> students = obj.ReadStudent();
         DataGridViewUtils.StudentToGrid(students, dataStudents);
     }
 }