Esempio n. 1
0
 private void HandleConnectedChanged(object sender, EventArgs args_)
 {
     Debug.Assert(this.m_Classroom != null);
     using (Synchronizer.Lock(this.m_Classroom.SyncRoot)) {
         if (!(this.m_Classroom.Connected))
         {
             this.Visible = false;
             this.Parent  = this.m_PresentationsPanel;
             this.Parent.Controls.Remove(this);
             this.Checked = this.m_Classroom.Connected;
         }
         else
         {
             this.Visible = true;
             this.Parent  = this.m_PresentationsPanel;
             this.Parent.Controls.Add(this);
             foreach (Control c in this.m_Startup.m_UDPPanel.Controls)
             {
                 if (c is UDPPresentationRadioButton)
                 {
                     UDPPresentationRadioButton rb = c as UDPPresentationRadioButton;
                     if ((rb.m_Classroom == this.m_Classroom) && rb.Checked)
                     {
                         this.Checked = true;
                     }
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public UDPPresentationCollectionHelper(UDPPresentationRadioButton parent, ClassroomModel classroom)
     : base(parent.m_EventQueue, classroom, "Presentations")
 {
     this.m_Parent = parent;
     base.Initialize();
 }
Esempio n. 3
0
 public UDPPresentationCollectionHelper(UDPPresentationRadioButton parent, ClassroomModel classroom)
     : base(parent.m_EventQueue, classroom, "Presentations")
 {
     this.m_Parent = parent;
     base.Initialize();
 }