Пример #1
0
 /// <summary>
 /// 调用委托
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void onTaskStateChanged(object sender, TaskStateChangedEventArgs e)
 {
     if (OnTaskStateChanged != null)
     {
         OnTaskStateChanged(sender, e);
     }
 }
Пример #2
0
        private void reportTaskStateChanged(object operationState)
        {
            TaskStateChangedEventArgs e = operationState as TaskStateChangedEventArgs;

            OnTaskStateChanged(this, e);
        }