I have following problem. I wrote simple application that is working as a book store. I would like to write GUI for this app. I started wondering how shall I connect the GUI with logic of app.
I have a class DBManager that allows me to do some operations connected with data base: putting new entities, deleting tables, ect... The first idea is to put the instance of DBManager in GUI class and than connect the buttons with methods of DBManager.
I generally think that the class that is responsible for GUI shall do the interaction with the User of application. and pass the information from user to the other class that shall be responsible for dealing with user request and giving the response for it to the GUI class that will show the result of request. Am I correct?
Aucun commentaire:
Enregistrer un commentaire