|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
OT: Business Objects - what are they and can they contain objects like sockets?the experienced programmers here. I have a number of objects in my current application, two of which are nodes and gateways. The DataGridView is excellent for me because i can add new objects to a list in a generic fashion. My node objects have an address field, name field. My gateway objects contain a name, ip address and a socket. The objects do contain a number of other fields but i have not listed them here as i can illustrate my point with those fields. I like setting the above as data sources in visual studio because it cuts down on my GUI design, but doing so entials the use of BindingSources and lists (lists are ok though as i need to keep lists of objects). Since i started using DataGridView i saw the object fields were getting set immediately, which is kind of a pain for me. I then looked at the IEditableObject interface which helped a little. But i guess my main question is, is it right for my gateway 'business object' to contain a socket as well? Should i have the gateway settings as an internal sub-structure (ie the ip address and name fields) which can be modified? Im not sure if my gateway is a business object as such, there are a number of things which seem to conflict with the business object analagy. I dont want the gateway object modified whilst its socket is connected, it is hard to coordinate with the DataGridView as that will change the gateway properties regardless. I hope this makes sense, i dare say im even barking up the wrong tree. Any advice much appreciated, Chris <g***@hotmail.com> a écrit dans le message de news:
1137780848.100125.212***@f14g2000cwb.googlegroups.com... | But i guess my main question is, is it right for my gateway 'business Any class used in a business application that describes parts of that | object' to contain a socket as well? Should i have the gateway settings | as an internal sub-structure (ie the ip address and name fields) which | can be modified? | | Im not sure if my gateway is a business object as such, there are a | number of things which seem to conflict with the business object | analagy. I dont want the gateway object modified whilst its socket is | connected, it is hard to coordinate with the DataGridView as that will | change the gateway properties regardless. business domain can be regarded as a business class. Instances of those classes are known as business objects. Joanna -- Joanna Carter [TeamB] Consultant Software Engineer
Excel Range will not put data into correct Cell
Best approach - databound controls & ADO.NET CHANGING DATA TYPE Get information about Dial Up connections? Maintaining a response user interface NetUserChangePassword Module not found?? How to close an application?? Simple mask Edit for Hours:Minutes Programatic uninstall? ADO, DAO or OleDb? |
|||||||||||||||||||||||