コード例 #1
0
 public Incident(int ID,Teacher teacher, Student student, int ticket_ID, String Arrival, String Comment)
 {
     this.ID = ID;
     this.teacher = teacher;
     this.student = student;
     this.ticket_ID = ticket_ID;
     this.arrival = Arrival;
     this.comment = Comment;
 }
コード例 #2
0
 public static List<Incident> getIncidentsByStudent(Student s)
 {
     return s.getIncidents();
 }
コード例 #3
0
 public static bool addStudent(Student s)
 {
     try
     {
         studentRepository.add(s);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.StackTrace);
         return false;
     }
     return true;
 }
コード例 #4
0
 public static bool deleteStudent(Student s)
 {
     return studentRepository.delete(s);
 }
コード例 #5
0
 public void addStudent(Student s)
 {
     this.students.Add(s);
 }