private void GUI_initPanel(HKButtonPanel panel)
 {
     panel.Height          = 30;
     panel.border          = 0;
     panel.borderColor     = deepBackgroundColor;
     panel.backgroundColor = backgroundColor;
 }
 private void addButtonToHKButtonPanel(HKButtonPanel panel, int btnWidth,
                                       HKButtonPanel.buttonClickHandler handler, params string[] titles)
 {
     foreach (string title in titles)
     {
         panel.addButton(title, btnWidth, handler);
     }
 }
        private void GUI_addOrderModeButton(HKButtonPanel panel)
        {
            panel.Name = "OrderMode";
            int btnWidth   = 80;
            int blankWidth = (operationPanelWidth - btnWidth * 8) / 2;

            addButtonToHKButtonPanel(panel, btnWidth, orderAndRandomModeButtonClick, "开始", "重复语音");
            panel.addBlank(blankWidth);
            addButtonToHKButtonPanel(panel, btnWidth, orderAndRandomModeButtonClick, "出勤", "迟到", "事假", "病假", "旷课");
            panel.addBlank(blankWidth);
            addButtonToHKButtonPanel(panel, btnWidth, orderAndRandomModeButtonClick, "保存");
        }
        private void GUI_addFreeModeButton(HKButtonPanel panel)
        {
            panel.Name = "FreeMode";
            int btnWidth   = 90;
            int blankWidth = (operationPanelWidth - btnWidth * 7) / 2;

            addButtonToHKButtonPanel(panel, btnWidth, freeModeButtonClick, "播放语音");
            panel.addBlank(blankWidth);
            addButtonToHKButtonPanel(panel, btnWidth, freeModeButtonClick, "出勤", "迟到", "事假", "病假", "旷课");
            panel.addBlank(blankWidth);
            addButtonToHKButtonPanel(panel, btnWidth, freeModeButtonClick, "保存");
        }
 private void GUI_addRandomModeButton(HKButtonPanel panel)
 {
     GUI_addOrderModeButton(panel);
 }