posted on Monday, June 05, 2006 12:58 PM by BayerWhite

WF Code Conditions

Here is a quick tip for using Code Conditions which are powerful for data driven results...

1. Use ConditionalEventArgs within the  parameter signature for routines

  • private void MovieIsLate(object sender, ConditionalEventArgs args)

2. Make sure to the condition  returns a boolean and that it is set to the ConditionalEventArgs "Result" property

  • args.Result = ((code==code))

These code conditions can be used for activities like ConditionActivityGroups which will execute contained activities based on the UntilCondition property and WhenCondition property of activities contained within it.

Comments