コード例 #1
0
 public void RemoveAttendance(Workshop wks)
 {
     foreach (Attendance a in this.attendances.ToList())
     {
         if (a.Wks.ID == wks.ID)
         {
             attendances.Remove(a);
             return;
         }
     }
     throw new Exception("Workshop haven't been found in this persons attandances.");
 }
コード例 #2
0
 public Attendance(Workshop wks, string logincode)
 {
     Wks       = wks;
     LoginCode = logincode;
 }
コード例 #3
0
 public Attendance(Workshop wks, int seatnum)
 {
     Wks        = wks;
     SeatNumber = seatnum;
 }
コード例 #4
0
 public EnrollmentRequest(Workshop wks, Person p)
 {
     Wks    = wks;
     Person = p;
     Status = "Pending";
 }