예제 #1
0
        private void cmdFail_Click(object sender, EventArgs e)
        {
            if (combCountry.SelectedIndex != -1 && combMotionType.SelectedIndex != -1)
            {
                if (timeVerification(motionIndex))//输入无误则立Flag通知Dais Console获取控件内容
                {
                    if (speakingTimeTooShort())//防止分钟和秒混淆
                    {
                        if (cmdDisplay.Text == "Remove From Screen" | cmdDisplay.Text == "从屏幕移除")
                        {
                            clearTheScreen = true;
                        }
                        newMotion = new Motion(combMotionType.SelectedIndex, combCountry.SelectedIndex, txtTTime.Text, txtSTime.Text, txtTopic.Text, false);
                        hasMotionToFail = true;
                        hasEvent = true;

                    }
                }
                else
                {
                    inputError();
                }
            }
            else
            {
                PopUp pop = new PopUp(languageIndex, "Content Missing", "Choose motion type and country to complete the motion", "内容缺失", "选择动议类型和国家以完成动议", lblDash.BackColor);
                pop.ShowDialog();
            }
        }
예제 #2
0
        private void cannotFindSecondScreen()
        {
            PopUp popUp = new PopUp(languageIndex, "Error", "Cannot find a second monitor (projector)", "错误", "无法找到第二显示器(投影仪)", lblLowerDash.BackColor);

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