Requiring several database queries for my GUI
I am to create a GUI with a couple of drop downs
These are populated from database queries, as well as the main program reading from the database based on all inputs in the GUI.
Should I put all database reads into a class as seperate methods.
one method for the database read to populate the first combo box.
a second method to take the choice from combobox 1 and read from the database to populate combobox 2
a third method to then perform the main database read based on GUI selections from the above two methods..
is this the 'right' way to do it.
my GUI would then be in a sperate class.
or should I sperate the 3 database reads into 3 different classes?
thanks in advance,