Hello !
I'm not used to programming GUIs and I'm looking for the most correct reasoning to develop my little application.
I need to extract data from an HDF5 file and then call a DLL so technically, my application is not complicated but I'm wondering about the following.
Knowing that on my application (XAML), I have two classes, one for the data extraction and another one for the DLL management, what is the best philosophy:
- Put the execution of my functions in the constructor and create an instance of my class each time I need it?
- Create an instance only once and call methods?
- Create an intermediate class that bridges the gap between my GUI and my different classes?
- Merge my two classes?
What do you think ? How do you try to think your application when you start ?
I'm not used to programming GUIs and I'm looking for the most correct reasoning to develop my little application.
I need to extract data from an HDF5 file and then call a DLL so technically, my application is not complicated but I'm wondering about the following.
Knowing that on my application (XAML), I have two classes, one for the data extraction and another one for the DLL management, what is the best philosophy:
- Put the execution of my functions in the constructor and create an instance of my class each time I need it?
- Create an instance only once and call methods?
- Create an intermediate class that bridges the gap between my GUI and my different classes?
- Merge my two classes?
What do you think ? How do you try to think your application when you start ?