Beispiel #1
0
        private void SetStateTestSetting()
        {
            testEnv.target  = textBoxTarget.Text;
            testEnv.delay   = Convert.ToInt32(textBoxDelay.Text.ToString());
            testEnv.endTime = dateTimeEnd.Value;

            textBoxTarget.Text = testEnv.target;
            textBoxDelay.Text  = testEnv.delay.ToString();
            dateTimeEnd.Value  = testEnv.endTime;

            using (TesterSettingDialog tsd = new TesterSettingDialog())
            {
                TesterEnviorment.eRunState runState = testEnv.EnableRunTest();

                if (runState == TesterEnviorment.eRunState.SUCCESS)
                {
                    testEnv.SaveConfig();
                    InitUIControl();

                    SetStateStartTest();
                }
                else
                {
                    ModalessMsgBox(MakeStrInvalidSettingEnum(runState));
                }

                AdjustBtnText();
            }
        }
Beispiel #2
0
        private void SetStateTestSetting()
        {
            testEnv.target = textBoxTarget.Text;
            testEnv.delay = Convert.ToInt32(textBoxDelay.Text.ToString());
            testEnv.endTime = dateTimeEnd.Value;

            textBoxTarget.Text = testEnv.target;
            textBoxDelay.Text = testEnv.delay.ToString();
            dateTimeEnd.Value = testEnv.endTime;

            using (TesterSettingDialog tsd = new TesterSettingDialog())
            {
                TesterEnviorment.eRunState runState = testEnv.EnableRunTest();

                if (runState == TesterEnviorment.eRunState.SUCCESS)
                {
                    testEnv.SaveConfig();
                    InitUIControl();

                    SetStateStartTest();
                }
                else
                {
                    ModalessMsgBox(MakeStrInvalidSettingEnum(runState));
                }

                AdjustBtnText();
            }
        }