Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some MM.NET problems - what approach to take?
Message
From
25/03/2007 19:06:00
 
 
To
25/03/2007 00:34:20
Walter Nicholls
Cornerstone Software Ltd
Auckland, New Zealand
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01207449
Message ID:
01208344
Views:
31
Hi Walter

Regarding your query on sending messages between forms etc, we have implemented something very similar ourselves.

What we have done doesn't necessarily allow for communication between 2 specific forms but global notification of events.

Basically we have implemented the concept of GlobalBizObjs. Just as a bizobj can register with a form/process, we can additionally register them as global (if required), you can do this on whatever object you like (AppDesktop, FormMgr or like you said create a specific Mgr for this purpose). It is basically a global bizobj state change event/handler.

Objects (forms or whatever) can register as handlers for the GlobalBizObj state change event.

the example here is if u have one form which has a list of items, that is seperate from another form which maintains the details (CRUD) of those items. When data is updated via the detail form you want to be able to update any relevant data in your list form.

- So the list form registers as a global bizobj state change handler
- the bizobj on the detail form register themselves as global bizobj (as well as with the form)
- and when the bizobj on the detail form change state (ie save, cancel etc) the the list form recieves notification of state change and can interigate the GlobalBizObjStateChangeEventArgs and respond accordinly.


You setup the GlobalBizObjStateChange event and the associated event args however you like.

Hope this helps get those creative juices flowing. <s>

Regards
Darren
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform