示例#1
0
 public Work()
 {
     _state       = WorkState.INIT;
     _description = string.Empty;
     _priority    = ThreadPriority.Normal;
     _eventArgs   = new WorkEventArgs(this);
 }
示例#2
0
 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;
 }