4
I read a text file that contains data from another database, upload that data line by line to a class, edit the required fields and then save it to the new database.
This insertion processing follows the following standard:
In the View
, I select the text file and the step by parameter for the Controller
, which in turn calls the Model
, that does all the processing and calls the AcessoADados
to save in the database.
In the Form
of View
, have a BackGroundWorker
, where the event Do_Work
calls the Controller
to start the process.
I also have a progressBar
, that updates its values through the backgroundWorker.ReportProgress()
to indicate how many loads are being loaded.
My question is:
How to inform the BackGroundWorker
that progress is increasing, with each record inserted, there of the class Model
?
Guys, so far no response has worked. When the Backgroundworker and the information processing are in the same class, I can do. The problem is when the processing and the Backgroundworker are in Classes of Projects different.
– 00lenon