Ejemplo n.º 1
0
        protected virtual void CalculCompleted(IComputable computable)
        {
            if (CalculCompletedEvent != null)
            {
                ComputableEventArgs eventArgs = new ComputableEventArgs();
                eventArgs.Computable = computable;

                CalculCompletedEvent(this, eventArgs);
            }
        }
Ejemplo n.º 2
0
 private void currentThreadManager_CalculCompletedEvent(object sender, ComputableEventArgs e)
 {
     if (this.InvokeRequired)
     {
         RefreshProgression_Callback call = new RefreshProgression_Callback(RefreshProgression);
         this.Invoke(call, ((ThreadManagerBase)sender).CountCalculated, e.Computable);
     }
     else
     {
         RefreshProgression(((ThreadManagerBase)sender).CountCalculated, e.Computable);
     }
 }