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; }
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; }
public Announcement(MentorGroup g, string title, string content) : this() { base.Group = g; base.Title = title; this.content = content; }
// 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 = ""; }
public Chatroom(MentorGroup group) { this.group = group; base.receivers = new List <IMessageReceiver>(); base.messages = new List <Message>(); }