示例#1
0
        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");
        }
示例#2
0
        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);
        }