Using Progress Bars
-
If you create all your business logic inside of a class which does a bunch of processing. Let's say this class is passed a file name and reads each line of the file to do some processing. If I want to display to the user the progress of reading through the file, what is the best way to update the progress bar? How do you keep business logic and presentaion layer separate in this case? Mike
-
If you create all your business logic inside of a class which does a bunch of processing. Let's say this class is passed a file name and reads each line of the file to do some processing. If I want to display to the user the progress of reading through the file, what is the best way to update the progress bar? How do you keep business logic and presentaion layer separate in this case? Mike
You make a new event (ReadStautsUpdate for example) and then your class fiers that event everytime it reads a line. You add a event hanlder on your form which will update the progressbar. -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
-
You make a new event (ReadStautsUpdate for example) and then your class fiers that event everytime it reads a line. You add a event hanlder on your form which will update the progressbar. -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!