Пример #1
0
        protected void OnConditionTested(Routine testedCondition, bool testResult)
        {
            if (conditionTested == null)
            {
                return;
            }

            ConditionTestEventArgs eventArgs = new ConditionTestEventArgs
            {
                testedCondition = testedCondition,
                testResult      = testResult
            };

            conditionTested(null, eventArgs);
        }
Пример #2
0
 private void Manager_conditionTested(object sender, ConditionTestEventArgs e)
 {
     LogCondition(e.testedCondition, e.testResult);
 }