private void ClickAddStudent(int id, string lname, string fname, string sname, string faculty, string department, string gpa, string privilege)
        {
            AcademicalScholarship ascholarship = new AcademicalScholarship(gpa);
            SocialScholarship     sscholarship = new SocialScholarship(privilege);
            Student student = new Student(id, lname, fname, sname, faculty, department, gpa, privilege, ascholarship, sscholarship);

            student.AddStudent(student);
            MessageBox.Show("Студент добавлен в систему");
        }
Exemplo n.º 2
0
 public Student(int id_student, string lname, string fname, string sname, string faculty, string department, string gpa, string privilege, AcademicalScholarship ascholarship, SocialScholarship sscholarship)
 {
     IdStudent             = id_student;
     FirstName             = fname;
     LastName              = lname;
     SecondName            = sname;
     Faculty               = faculty;
     Department            = department;
     GPA                   = gpa;
     Privilege             = privilege;
     AcademicalScholarship = ascholarship;
     SocialScholarship     = sscholarship;
 }