I have an object called box. It has the following properties
BoxType
BoxTare
BoxDescription
it is in a Namespace of x.database.Boxes
Box is a row in my database, but in my UI I will be binding a list of boxes to a ListBox. Should I make a collection object for this in my UI? Or should I make a Boxes.Collection object that inherits from a collectionBase?
I dont know if my question makes a lot of sense. Personally I think my object should hold all the necessary information and my ui simply displays it. So I would have the following:
x.database.boxes would contain a Box class and a Collection Class of type boxes. Is this right?
--
--Eric Cathell, MCSA
|