private void createButton_Click(object sender, EventArgs e) { List <Student> students = DataGridViewUtils.GridToStudents(dataStudent); ClassFile a = new ClassFile("stud.dat"); a.SaveStudent(students, "students.dat"); }
private void button1_Click(object sender, EventArgs e) { List <Student> students = DataGridViewUtils.GridToStudents(dataStudents); WorkWithStudents2 obj1 = new WorkWithStudents2(); List <Kurs> otch = new List <LogicLibrary1.Kurs>(); otch = obj1.GetListsOtchisl(students); DataGridViewUtils.KursesToGrid(otch, dataOtchislenie); }