Ben Chase (09/05/2008)
The business objects fire their Navigated event when they are refilled. So, your call to boAdvisorContacts.GetAdvisorContacts(boAdvisor.advisor_pk) looks like it's populating the boAdvisorContacts business object; at the end of that fill process, it will fire its Navigated event. The form's Navigated event is a mirror of the Navigated event of all business objects on the form... any business object navigates, and it gets raised as well. So, when you filled your business object, it Navigated, which caused the form to raise Navigated, which filled the business object again, which Navigated again, which caused the form to raise Navigated again, and so on. When you want to target the navigation of a specific business object, then use the Navigated event of that specific business object; just like you figured out
Thanks for the explanation. I appreciate it. Is there anywhere that I can find detailed information about the Strataframe's event model?
Ben Chase (09/05/2008)
As for the second handler on the EditingStateChanged, I'm not sure why that one would cause an infinite loop. You're just enabling/disabling some UI elements, and not doing anything that would raise the EditingStateChanged again.Well all I know is what I observed