Tracking workflow changes done at design time

Is there any way to track changes done to workflow during its design time? Suppose I have workflow designer control embedded in my application and I am modifying workflow using that designer and I need to record changes done to the workflow. Are there any designer events available that could be utilized for that purpose?

Also I sawActivityChangedEventArgs class being available. Which event fires with those event arguments?

Edmundas

[1294 byte] By [Edmundas] at [2007-12-17]
# 1
Design time changes are signaled by using the IComponentChangeService .Net interface. The host needs to provide this service through the hosting site. You can then add handlers to the events defined on this interface to process the events you're interested in. (look into MSDN for more information)
IComponentChangeService provides an interface that can be used to indicate the methods that handle the following events:

*ComponentAdded , raised when a component is added.
*ComponentAdding , raised when a component is about to be added.
*ComponentChanged , raised when a component is changed.
*ComponentChanging , raised when a component is about to be changed.
*ComponentRemoved , raised when a component is removed.
*ComponentRemoving , raised when a component is about to be removed.
*ComponentRename , raised when a component is renamed.
ActivityChangedEventArgs is the parameter that's passed to the virtual function OnActivityChanged defined on the ActivityDesigner class. If you write your own designer that inherits from ActivityDesigner , you can override this function and be called with the activity associated with this designer changes. It is not a place where you would record all changes happened in the designer.
Shelly

ShellyGuo at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified