Beispiel #1
0
 private void Display_Click(object sender, EventArgs e)
 {
     if (cmdDisplay.Text == "Display to Screen" | cmdDisplay.Text == "展示到屏幕")
     {
         if (combCountry.SelectedIndex != -1)
         {
             if (timeVerification(motionIndex))//输入无误则立Flag通知Dais Console获取控件内容
             {
                 if (speakingTimeTooShort())//防止分钟和秒混淆
                 {
                     newMotion = new Motion(combMotionType.SelectedIndex, combCountry.SelectedIndex, txtTTime.Text, txtSTime.Text, txtTopic.Text, false);
                     hasContentToDisplay = true;
                     hasEvent = true;
                     if (languageIndex == 0)//更新按钮
                     {
                         cmdDisplay.Text = "Remove from Screen";
                     }
                     if (languageIndex == 1)
                     {
                         cmdDisplay.Text = "从屏幕移除";
                     }
                 }
             }
             else
             {
                 inputError();
             }
         }
         else
         {
             PopUp pop = new PopUp(languageIndex, "Content Missing", "Choose motion type and country to complete the motion", "内容缺失", "选择动议类型和国家以完成动议", lblDash.BackColor);
             pop.ShowDialog();
         }
     }
     else//撤回屏幕上输出的内容
     {
         if (languageIndex == 0)//更新按钮
         {
             cmdDisplay.Text = "Display to Screen";
         }
         if (languageIndex == 1)
         {
             cmdDisplay.Text = "展示到屏幕";
         }
         clearTheScreen = true;//通知Dais Console清屏
         hasEvent = true;
     }
 }
Beispiel #2
0
        private void cannotFindSecondScreen()
        {
            PopUp popUp = new PopUp(languageIndex, "Error", "Cannot find a second monitor (projector)", "错误", "无法找到第二显示器(投影仪)", lblLowerDash.BackColor);

            popUp.ShowDialog();
        }
Beispiel #3
0
 public void inputError()
 {
     PopUp popUp = new PopUp(languageIndex, "Error", "Please Check Input Time", "错误", "请检查输入的时间", lblDash.BackColor);
     popUp.ShowDialog();
 }