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); }
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); }