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

            DataGridViewUtils.StudentToGrid(obj.GetRamdom(n), dataStudent);
        }
        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 createButton_Click(object sender, EventArgs e)
        {
            List <Student> students = DataGridViewUtils.GridToStudents(dataStudent);
            ClassFile      a        = new ClassFile("stud.dat");

            a.SaveStudent(students, "students.dat");
        }
Example #4
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);
     }
 }
Example #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <Student>    students = DataGridViewUtils.GridToStudents(dataStudents);
            WorkWithStudents2 obj1     = new WorkWithStudents2();
            List <Kurs>       otch     = new List <LogicLibrary.Kurs>();

            otch = obj1.GetListsOtchisl(students);
            DataGridViewUtils.KursesToGrid(otch, dataOtchislenie);
        }
 private void FormCreateDatabase_Load(object sender, EventArgs e)
 {
     DataGridViewUtils.InitGridForArr(dataStudent, 40, false, true, true, true, false);
 }