Ejemplo n.º 1
0
        public MultiThreadCopyCommandProgressMonitor(MultiThreadCopyCommand target)
        {
            target.Start    += new EventHandler(target_Start);
            target.Complete += new EventHandler(target_Complete);

            target.WorkItemStart    += new EventHandler <Patterns.WorkItemEventArgs <CopyFileWorkItem> >(target_CopyFileStart);
            target.WorkItemComplete += new EventHandler <Patterns.WorkItemEventArgs <CopyFileWorkItem> >(target_CopyFileComplete);
        }
 public MultiThreadCopyCommandFailureMonitor(MultiThreadCopyCommand target)
 {
     target.WorkItemComplete += new EventHandler <Patterns.WorkItemEventArgs <CopyFileWorkItem> >(target_CopyFileComplete);
     this.FailedWorkItems     = new List <CopyFileWorkItem>();
 }