private void setupRollcallPanel(BaseRollcallConsolePanel rollcallConsolePanel) { this.rollcallConsolePanel.rollcallSessionPrepared += this.onRollcallSessionPrepared; this.rollcallConsolePanel.leavingRollcallPage += this.onLeavingRollcallPage; UserControl rollcallPanelControl = (UserControl)this.rollcallConsolePanel; rollcallPanelControl.Dock = DockStyle.Fill; this.rollcallContainerPanel.Controls.Add(rollcallPanelControl); }
public MainForm(McrFactory mcrFactory, BaseRollcallConsolePanel rollcallConsolePanel) : this() { this.mcrFactory = mcrFactory; this.netStatesManager = mcrFactory.getNetStatesManager(); this.absentStudentsSpeaker = mcrFactory.createTTS(); this.nameSpeaker = mcrFactory.createTTS(); this.rollcallConsolePanel = rollcallConsolePanel; setupRollcallPanel(rollcallConsolePanel); setupStudentsConsolePage(); if (rollcallConsolePanel.GetType() == typeof(RollcallUserDefinedSessionPanel)) { 自訂義用特殊功能ToolStripMenuItem.Enabled = true; } }