コード例 #1
0
ファイル: ClassroomBrowser.cs プロジェクト: zhujingcheng/CP3
        public ClassroomBrowserControl(PresenterModel model)
        {
            this.SuspendLayout();

            this.m_Model = model;

            this.m_ClassroomsList          = new ClassroomsListView(this.m_Model);
            this.m_PresentationsList       = new PresentationsListView(this.m_Model);
            this.m_PresentationButtonPanel = new PresentationButtonPanel(this.m_Model);

            this.Controls.Add(this.m_ClassroomsList);
            this.Controls.Add(this.m_PresentationButtonPanel);
            this.Controls.Add(this.m_PresentationsList);

            // The model has no concept of the currently selected classroom for the purposes of
            // this UI (nor should it), so we're responsible for updating the buttons directly.
            this.m_PresentationsList.SelectedIndexChanged += new EventHandler(HandlePresentationSelectionChanged);
            this.HandlePresentationSelectionChanged(null, null);

            this.ResumeLayout(false);
        }
コード例 #2
0
        public ClassroomBrowserControl(PresenterModel model)
        {
            this.SuspendLayout();

            this.m_Model = model;

            this.m_ClassroomsList = new ClassroomsListView(this.m_Model);
            this.m_PresentationsList = new PresentationsListView(this.m_Model);
            this.m_PresentationButtonPanel = new PresentationButtonPanel(this.m_Model);

            this.Controls.Add(this.m_ClassroomsList);
            this.Controls.Add(this.m_PresentationButtonPanel);
            this.Controls.Add(this.m_PresentationsList);

            // The model has no concept of the currently selected classroom for the purposes of
            // this UI (nor should it), so we're responsible for updating the buttons directly.
            this.m_PresentationsList.SelectedIndexChanged += new EventHandler(HandlePresentationSelectionChanged);
            this.HandlePresentationSelectionChanged(null, null);

            this.ResumeLayout(false);
        }
コード例 #3
0
 public ClassroomCollectionHelper(ClassroomsListView parent, ProtocolModel protocol) : base(parent.m_EventQueue, protocol, "Classrooms")
 {
     this.m_Parent = parent;
     base.Initialize();
 }
コード例 #4
0
 public ProtocolCollectionHelper(ClassroomsListView parent, NetworkModel network) : base(parent.m_EventQueue, network, "Protocols")
 {
     this.m_Parent = parent;
     base.Initialize();
 }
コード例 #5
0
 public ProtocolCollectionHelper(ClassroomsListView parent, NetworkModel network)
     : base(parent.m_EventQueue, network, "Protocols")
 {
     this.m_Parent = parent;
     base.Initialize();
 }
コード例 #6
0
 public ClassroomCollectionHelper(ClassroomsListView parent, ProtocolModel protocol)
     : base(parent.m_EventQueue, protocol, "Classrooms")
 {
     this.m_Parent = parent;
     base.Initialize();
 }