示例#1
0
 private void ArrayPreFill(Studenti arrayOfStudents)
 {
     arrayOfStudents.AddStudent(new Student("Karel", 5, "FEI"));
     arrayOfStudents.AddStudent(new Student("Pepa", 6, "FES"));
     arrayOfStudents.AddStudent(new Student("tonda", 3, "FF"));
     arrayOfStudents.AddStudent(new Student("NIkdo", 2, "FCHT"));
     arrayOfStudents.AddStudent(new Student("někdo", 1, "FEI"));
 }
示例#2
0
        private void ArrayReading(Studenti arrayOfStudents)
        {
            string  jmeno       = Reading.ReadString("Jméno");
            int     cislo       = Reading.ReadInt("Číslo");
            string  fakulta     = Reading.ReadString("Fakulta");
            Student tempStudent = new Student(jmeno, cislo, fakulta);

            arrayOfStudents.AddStudent(tempStudent);
        }