Example #1
0
            public PresentationListViewItem(ControlEventQueue dispatcher, PresentationModel presentation)
            {
                this.m_EventQueue   = dispatcher;
                this.m_Presentation = presentation;
                this.Tag            = presentation.Owner;

                this.SubItems.Add(this.m_OwnerSubItem        = new OwnerSubItem(this));
                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.Presentation.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.m_HumanNameChangedDispatcher.Dispatcher(this.Presentation, null);
            }
Example #2
0
            public ClassroomListViewItem(ControlEventQueue dispatcher, ClassroomModel classroom)
            {
                if (classroom == null)
                {
                    throw new ArgumentNullException("classroom",
                                                    "The ClassroomModel associated with this ClassroomListViewItem cannot be null.");
                }

                this.m_EventQueue = dispatcher;
                this.m_Classroom  = classroom;
                this.Tag          = classroom;

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.m_ConnectedChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleConnectedChanged));
                this.Classroom.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.Classroom.Changed["Connected"].Add(this.m_ConnectedChangedDispatcher.Dispatcher);

                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));
                this.SubItems.Add(this.m_ProtocolSubItem     = new ProtocolSubItem(this));

                this.HandleConnectedChanged(this.Classroom, null);
                this.HandleHumanNameChanged(this.Classroom, null);
            }
            public PresentationListViewItem(ControlEventQueue dispatcher, PresentationModel presentation)
            {
                this.m_EventQueue = dispatcher;
                this.m_Presentation = presentation;
                this.Tag = presentation.Owner;

                this.SubItems.Add(this.m_OwnerSubItem = new OwnerSubItem(this));
                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.Presentation.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.m_HumanNameChangedDispatcher.Dispatcher(this.Presentation, null);
            }
Example #4
0
            public ClassroomListViewItem(ControlEventQueue dispatcher, ClassroomModel classroom)
            {
                if(classroom == null)
                    throw new ArgumentNullException("classroom",
                        "The ClassroomModel associated with this ClassroomListViewItem cannot be null.");

                this.m_EventQueue = dispatcher;
                this.m_Classroom = classroom;
                this.Tag = classroom;

                this.m_HumanNameChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleHumanNameChanged));
                this.m_ConnectedChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_EventQueue, new PropertyEventHandler(this.HandleConnectedChanged));
                this.Classroom.Changed["HumanName"].Add(this.m_HumanNameChangedDispatcher.Dispatcher);
                this.Classroom.Changed["Connected"].Add(this.m_ConnectedChangedDispatcher.Dispatcher);

                this.SubItems.Add(this.m_ParticipantsSubItem = new ParticipantsSubItem(this));
                this.SubItems.Add(this.m_ProtocolSubItem = new ProtocolSubItem(this));

                this.HandleConnectedChanged(this.Classroom, null);
                this.HandleHumanNameChanged(this.Classroom, null);
            }