/// <summary> /// Creates a new <see cref="ClassroomModel"/> as a member of the given <see cref="ProtocolModel"/>, /// with the given Human Name. /// </summary> public ClassroomModel(ProtocolModel protocol, string humanName, ClassroomModelType classroomModelType) { this.m_Protocol = protocol; this.m_ClassroomModelType = classroomModelType; this.m_Participants = new ParticipantCollection(this, "Participants"); this.m_Presentations = new PresentationCollection(this, "Presentations"); this.m_HumanName = humanName; this.m_Connected = false; this.m_RtpEndPoint = null; }
public TCPConnectionManager(PresenterModel model) { this.m_Model = model; this.m_Protocol = new ProtocolModel(this, "TCP"); this.m_Classroom = new TCPClassroomManager(this.m_Model, this, Strings.InstructorStartTCPServer); using (Synchronizer.Lock(this.m_Protocol.SyncRoot)) { this.m_Protocol.Classrooms.Add(this.m_Classroom.Classroom); } }
public RTPConnectionManager(PresenterModel model) { this.m_Model = model; this.m_Protocol = new ProtocolModel(this, "RTP"); this.m_Classrooms = new List<RTPClassroomManager>(); List<Venue> venueList = RTPVenueManager.GetVenues(); foreach (Venue v in venueList) { this.m_Classrooms.Add(new RTPClassroomManager(this.m_Model, this, v.VenueName, v.VenueEndPoint, false)); //Note that the UI connection dialog only shows 5 classrooms, regardless of how many we add here } using (Synchronizer.Lock(this.m_Protocol.SyncRoot)) { foreach (RTPClassroomManager manager in this.m_Classrooms) { this.m_Protocol.Classrooms.Add(manager.Classroom); } } }
public void Remove(ProtocolModel value) { List.Remove(value); }
public void Insert(int index, ProtocolModel value) { List.Insert(index, value); }
public int IndexOf(ProtocolModel value) { return List.IndexOf(value); }
public bool Contains(ProtocolModel value) { return List.Contains(value); }
public int Add(ProtocolModel value) { return List.Add(value); }
public ClassroomCollectionHelper(ManualConnectionMenu parent, PresentationsMenu presMenu, ProtocolModel protocol) : base(parent.m_EventQueue, protocol, "Classrooms") { this.m_Parent = parent; this.m_PresentationsMenu = presMenu; base.Initialize(); }
public ClassroomCollectionHelper(PresentationsPanel parent, ProtocolModel protocol) : base(parent.m_EventQueue, protocol, "Classrooms") { this.m_Parent = parent; base.Initialize(); }
public bool Contains(ProtocolModel value) { return(List.Contains(value)); }
public int IndexOf(ProtocolModel value) { return(List.IndexOf(value)); }
public int Add(ProtocolModel value) { return(List.Add(value)); }