Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper organization of objects
Message
 
À
01/05/2007 18:24:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01221666
Message ID:
01221773
Vues:
24
Tim,

>If I set up a listener in the biz object to receive the data as needed are there methods to allow the biz object to notify the form of the new information.

There is--you can manually raise the StateChange event in the business object and the user interface controls can automatically bind to the data. For example:

this.CallStateChange(mmBusinessState.Bind, "MyTable");

>If I set up the listener in the form (seems wrong) then the form can update it's display but then the biz obj would have to get it's info from the form. (seems backwards).

Right...the business object should never access or even be aware of user interface controls.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform