Hey all-
I'm looking for a strategy on how to structure a VB.net GUI app. I have a application that is basically an interface to a database. It is comprised of a TabControl with 6 tabs, each tab has a few custom controls and performs a business operation on the database.
Tab Functions:
Parse an XLS into SQL inserts and commit to db
Generate an XLS from db query results
Generate an XLS from db query results
Quick access data lookup from the db (write to log box)
Manual database modification via GUI form (insert / update statement execution)
DB connection settings
Common Code Functions:
Connecting/disconnecting to/from the DB
Executing non-queries
Executing queries
Iterating over query results
Writing to an XLS
Common subqueries (DB provider doesn't allow views)
Currently I've got most all of the operations built into event handler functions on the GUI thread. I'd like to move to a more object-oriented structure for code reusability and easier multi-threading.
I'm struggling with a few design things:
What objects / classes makes sense?
Are there industry-standard best practices or design patterns around separating GUI and backend functionality? Any particularly good articles I should read?
Is BackgroundWorker the best way to execute the backend functions?
Thanks-
Jonathan