Monday, June 05, 2006 - Posts

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.

Tallahassee Code Camp 2006

Get ready for the next Florida code camp that is sure to answer questions you have on some of the latest technologies Microsoft has to offer. This year's Tallahassee Code Camp is scheduled for June 17, 2006... Register Now!!