private void ImageProcessingManager_ProcessStateChanged(object sender, ProcessStateChangedEventArgs e)
 {
     ProcessProgressForm processProgressForm = userStateToProcessProgressForm[e.UserState];
     processProgressForm.ChangeTaskState(e.Item, e.State);
 }
 protected virtual void OnProcessStateChanged(ProcessStateChangedEventArgs e)
 {
     if (ProcessStateChanged != null)
     {
         ProcessStateChanged(this, e);
     }
 }