Пример #1
0
 protected virtual void fireThreadChanged(ThreadCountChangedEventArgs args)
 {
     if (ThreadChanged != null)
     {
         ThreadChanged(this, args);
     }
 }
Пример #2
0
        private void du_onThreadChanged(object sender, ThreadCountChangedEventArgs e)
        {
            IProgressable d  = (IProgressable)sender;
            OperationInfo op = (OperationInfo)d.State;

            op.runningThreadCount = e.RunningThreadCount;
            op.totalThreadCount   = e.TotalThreadCount;
            fireOnThreadChanged(op);
        }