Oct 21, 2010 at 7:21 PM
Edited Oct 22, 2010 at 5:28 PM
Hy again guys,
I'm trying to design the structure of my application and I'm having some doubts.
Let me try to explain how it will work my application:
I Have a Shell with a "MainRegion" and 2 modules:
- ModuleA : that have a ViewA, and a ChildWindowA
- ModuleB : that have a ViewB, and a ChildWindowB
In the Shell i have 2 buttons (show ViewA and show ViewB).
The ViewA and ViewB is just a DataGrid that load the TableA and TableB data respectively, and also have 3 buttons (add, edit and Delete).
The Add and Edit buttons for the ViewA call the ChildWindowA, and the Add and Edit buttons for the ViewB call the ChildWindowsB.
Thats all fine,no problem here.
The problem is: The ChildWindowA (in the ViewA), also have a shortcut to add a TableB record, so, i need to call the ChildWindowB (in the ModuleB) inside the ChildWindoA (in TheModuleA), how can i do that?
Given the structure above, ill will use the Ria Service as a Data Context in my Application.
In that case, is there any problema to create a Singleton DomainContext in the Shell? that all my Modules/Views/Childwindows can use?