Information générale
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Network:
Windows 2008 Server
>You could always add your own Save method to the MainForm if you need to save and ultimately it would just call a save on the business object.
>
>I access business objects from classess other than forms all the time and it is perfectly fine. If you do need to do a save there are save methods on the business object also. They just don't have UI stuff in them. When you call the Form level Save you get some UI stuff.
>
>When you have a free moment or two, open the Mere Mortals Framework Windows Forms solution and look at the Save() methods of mmBusinessForm. Ultimately they just call a save method on the business object such as BizObj.SaveDataSet. If you don't have a form involved then you can just call these methods directly on the business object. Just remember you need to check business rules and deal with broken rules.
>
>I hope that helps. Have fun
>Tim
Thank you very much!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement