Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper organization of objects
Message
De
02/05/2007 11:23:55
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:
01221833
Vues:
14
Hi Kevin,
>
>>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.
>

Then what you are suggesting is to keep properties in the biz obj that store the results from the gps event and notify the form via the state changed event. The form can then if listening, retrieve these updates via the properties in the biz obj. Correct?

I am beginning to wonder what will happen to performance. My gpstoolkit fires a position update event constantly. I have a wrapper class that recreates an update object and then fires it's own position update event the biz obj listens to, then the biz obj fires a state changed event. Should this be a concern?

Thanks for your help as always
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform