Hello. I have a small class library, each implementing the ITask interface:I'm looking to allow my user to schedule these tasks. Basically a big list of tasks.. each one on it's own thread.Code:Public Interface ITask Property StartTime As DateTime Property StopTime As DateTime Property RunFrequency As TimeSpan Sub Start() Function Execute() As Integer Sub Finish() End Interface
psuedo: If Now >= startTime and Now <= stopTime, Threading.Thread.Sleep(task.execute())
What controls could I use to make the scheduling look neat? How would I go about with the actual threading part? Would I need to add a Thread property to my ITask interface?




Reply With Quote