Hi,
In Eclipse I saw an implementation of IProgressMonitor - which is subsequently in SharpDevelop too but I'm not sure how this works. Is there an example of this elsewhere that might be a bit easier to understand?
What I'm trying to achieve is a method of tracking the progress of a bunch of tasks (which vary greatly from 20mins to 5seconds) by the one progressbar (tasks can be added at any point in time).
Would something like this be a good alternative/idea?
interface ITask
{
int TotalWork; // ProgressMax
event Progresschanged; // Notifies of the current progress
event ProgressComplete;
}
Then the "Monitor" simply uses the Observer pattern to monitor the two events. When all the progressbars have completed it will hide the progressbar. The other issue is that these are seperate threads that are being spawned.
Could anyone advise me on something or lead me on the right track?