Where execute Terminate

Topics: CAB & Smart Client Software Factory
Apr 4, 2006 at 9:19 AM
originally posted by: tecnocrata

Hi

I understand that Terminate remove all commands references (I'd like that)
But my main questions is where execute Terminate.....???
Now I have a menu item to save and a controller's method like this:

public void SaveCustomer()
{
Bussines.SaveCustomer();
workItem.Terminate();
}

this works perfectly

but Terminate only execute when the user save and what about when user select anoter view where can i put Terminate? UnLoad User Control? there are some event or another thing that I'm missing?

Thanks

Sorry my english is very poor