XMLDocument for all MDI children
-
Is it possible to have one XMLDocument for all MDI Children so that I only need to invoke the .save once from MDI container instead of doing it every time in every child?
-
Is it possible to have one XMLDocument for all MDI Children so that I only need to invoke the .save once from MDI container instead of doing it every time in every child?
Yes.
Eslam Afifi
-
Is it possible to have one XMLDocument for all MDI Children so that I only need to invoke the .save once from MDI container instead of doing it every time in every child?
You sound like you need to consider using the Observer pattern:
- http://en.wikipedia.org/wiki/Observer_pattern[^]
- http://www.dofactory.com/Patterns/PatternObserver.aspx[^] (sample implementation)
With all the children being registered observers, you just need to fire up the save method in the object (MDI form) and it'll take care of saving the other forms.
If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?