예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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);
                }
            }
        }
예제 #5
0
 public void Remove(ProtocolModel value)
 {
     List.Remove(value);
 }
예제 #6
0
 public void Insert(int index, ProtocolModel value)
 {
     List.Insert(index, value);
 }
예제 #7
0
 public int IndexOf(ProtocolModel value)
 {
     return List.IndexOf(value);
 }
예제 #8
0
 public bool Contains(ProtocolModel value)
 {
     return List.Contains(value);
 }
예제 #9
0
 public int Add(ProtocolModel value)
 {
     return List.Add(value);
 }
예제 #10
0
 public ClassroomCollectionHelper(ManualConnectionMenu parent, PresentationsMenu presMenu, ProtocolModel protocol)
     : base(parent.m_EventQueue, protocol, "Classrooms")
 {
     this.m_Parent = parent;
     this.m_PresentationsMenu = presMenu;
     base.Initialize();
 }
예제 #11
0
 public ClassroomCollectionHelper(PresentationsPanel parent, ProtocolModel protocol)
     : base(parent.m_EventQueue, protocol, "Classrooms")
 {
     this.m_Parent = parent;
     base.Initialize();
 }
예제 #12
0
 public bool Contains(ProtocolModel value)
 {
     return(List.Contains(value));
 }
예제 #13
0
 public void Remove(ProtocolModel value)
 {
     List.Remove(value);
 }
예제 #14
0
 public void Insert(int index, ProtocolModel value)
 {
     List.Insert(index, value);
 }
예제 #15
0
 public int IndexOf(ProtocolModel value)
 {
     return(List.IndexOf(value));
 }
예제 #16
0
 public int Add(ProtocolModel value)
 {
     return(List.Add(value));
 }