public Work() { _state = WorkState.INIT; _description = string.Empty; _priority = ThreadPriority.Normal; _eventArgs = new WorkEventArgs(this); }
public Work(DoWorkHandler work, string description, ThreadPriority threadPriority, WorkEventHandler workCompletedHandler) { WorkLoad = work; _description = description; _priority = threadPriority; WorkCompleted = workCompletedHandler; _eventArgs = new WorkEventArgs(this); _simpleWork = true; _state = WorkState.INIT; }