G
Guest
Hello,
I´ve a general question how to perform a strict seperation between GUI
design and core functionality.
To give a little example...
I´m importing an xml file into a MS SQL database.
For this reason I designed a class "Import" and a GUI-class "ImportDialog".
The ImportDialog contains a progress bar.
In the Import-Class I am sequentially reading the xml-file
and importing it to the database.
For every sequential step I want to call progressBar.performStep();
My question is now... How can I do it without loosing my strict
seperation between functionality (class Import) and design (class
ImportDialog)?
At the moment I am giving the progressBar object to the constructor of
the Import class (public Import(ProgressBar pBar)) but this seems to be
a dirty hack.
So... How do you solve these problems?
Maybe with using Thread-Programming?
Regards,
Martin
I´ve a general question how to perform a strict seperation between GUI
design and core functionality.
To give a little example...
I´m importing an xml file into a MS SQL database.
For this reason I designed a class "Import" and a GUI-class "ImportDialog".
The ImportDialog contains a progress bar.
In the Import-Class I am sequentially reading the xml-file
and importing it to the database.
For every sequential step I want to call progressBar.performStep();
My question is now... How can I do it without loosing my strict
seperation between functionality (class Import) and design (class
ImportDialog)?
At the moment I am giving the progressBar object to the constructor of
the Import class (public Import(ProgressBar pBar)) but this seems to be
a dirty hack.
So... How do you solve these problems?
Maybe with using Thread-Programming?
Regards,
Martin