❔ How to organize Windows Forms application
Hi, I'm developing a Windows Forms app that can perform a bunch of translation-related tasks such as:
1) Parsing a c# file, looking for terms, listing those for which there is no translation on database and printing this list
2) Use a file containing <term, translation, language> records and write them onto database
and so on
Now, I'd like to organize properly this application. In particular, I'd like to keep in the Form class only the code related to the form controls, and everything else somewhere else. Furthermore, I'd like the front-end not to be frozen while the app is working, but rather showing progress bars and so on.
I understand I need to use BackgroundWorker for this.
So I have my form, where I'll initialize a BackgroudWorker... but where should the method that will be executed by the Background Worker be placed?
And should I use services (like in .net web app)?
Thanks!
1) Parsing a c# file, looking for terms, listing those for which there is no translation on database and printing this list
2) Use a file containing <term, translation, language> records and write them onto database
and so on
Now, I'd like to organize properly this application. In particular, I'd like to keep in the Form class only the code related to the form controls, and everything else somewhere else. Furthermore, I'd like the front-end not to be frozen while the app is working, but rather showing progress bars and so on.
I understand I need to use BackgroundWorker for this.
So I have my form, where I'll initialize a BackgroudWorker... but where should the method that will be executed by the Background Worker be placed?
And should I use services (like in .net web app)?
Thanks!