Esempio n. 1
0
 public Meeting(MentorGroup g, string title, string location, string agenda, DateTime startTime, DateTime endTime)
 {
     this.ID = ++nextId;
     if (g != null && g.Mentees != null)
     {
         foreach (Mentee m in g.Mentees)
         {
             attendance.Add(m.StudentNumber, AttendanceStatus.NO_DATA);
         }
     }
     this.startTime = startTime;
     this.endTime   = endTime;
     this.Title     = title;
     this.Location  = location;
     this.Agenda    = agenda;
     this.Group     = g;
 }
Esempio n. 2
0
 public Meeting(int ID, MentorGroup g, string title, string location, string agenda, DateTime startTime, DateTime endTime)
 {
     this.ID    = ID;
     attendance = new Dictionary <string, AttendanceStatus>();
     if (g != null && g.Mentees != null)
     {
         foreach (Mentee m in g.Mentees)
         {
             attendance[m.StudentNumber] = AttendanceStatus.NO_DATA;
         }
     }
     this.Title     = title;
     this.Location  = location;
     this.startTime = startTime;
     this.endTime   = endTime;
     this.Agenda    = agenda;
     this.Group     = g;
 }
Esempio n. 3
0
 public Announcement(MentorGroup g, string title, string content) : this()
 {
     base.Group   = g;
     base.Title   = title;
     this.content = content;
 }
Esempio n. 4
0
 // a constructor that is hidden for use only by the static admin variable
 private Administrator(string firstName, string surname, string studentNumber, int groupNumber, MentorGroup group)
 {
     base.FirstName     = firstName;
     base.Surname       = surname;
     base.StudentNumber = studentNumber;
     base.GroupNumber   = GroupNumber;
     base.Group         = group;
     base.DateOfBirth   = DateTime.Now;
     base.Degree        = "";
 }
Esempio n. 5
0
 public Chatroom(MentorGroup group)
 {
     this.group     = group;
     base.receivers = new List <IMessageReceiver>();
     base.messages  = new List <Message>();
 }