Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice for notifying other bizobjs of changes
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Divers
Thread ID:
01231835
Message ID:
01232157
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Craig,

>I have a form with a project list on it, from here a sub-form can be opened for editing some of the details.
>
>If details are changed and saved in the sub form, how do I notify the original form of changes?
>
>Currently both the parent and child forms have their own copy of the business object registered. I pass in the ID required to the child form.
>
>Is it perhaps better (in this case) to pass in the currently referenced entity from the parent form instead, or is there a better way?

Depending on what you're trying to accomplish you can do it either way. If they are editing the same data, I recommend passing a reference to the other form. You can still register the business object. For example:
public ChildForm(Inventory inventory)
{
   this.oInventory = this.RegisterBizObj(inventory);
}
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
Répondre
Fil
Voir

Click here to load this message in the networking platform