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

            DataGridViewUtils.StudentToGrid(std, dataStudent);
        }
Esempio n. 2
0
 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);
     }
 }