示例#1
0
        private void onTestStateChanged(object sender, TestStateEventArgs e)
        {
            switch (e.State)
            {
            default:
            case TestState.Nothing:
                testStatePanel.BackColor = Color.Transparent;
                break;

            case TestState.Unknown:
                testStatePanel.BackColor = Color.RoyalBlue;
                break;

            case TestState.Fail:
                testStatePanel.BackColor = Color.Red;
                break;

            case TestState.Pass:
                testStatePanel.BackColor = Color.LightGreen;
                break;
            }
        }
示例#2
0
        private void onTestStateChanged(object sender, TestStateEventArgs e)
        {
            switch (e.State)
            {
                default:
                case TestState.Nothing:
                    testStatePanel.BackColor = Color.Transparent;
                    break;

                case TestState.Unknown:
                    testStatePanel.BackColor = Color.RoyalBlue;
                    break;

                case TestState.Fail:
                    testStatePanel.BackColor = Color.Red;
                    break;

                case TestState.Pass:
                    testStatePanel.BackColor = Color.LightGreen;
                    break;
            }
        }