Пример #1
0
 /// <summary>
 /// </summary>
 /// <param name="message"></param>
 internal static void PostMessage(AsyncTaskMessage message)
 {
     if (uiController != null)
     {
         uiController.BeginInvoke(new PostMessageCallback(UIThreadCallback), new object[] { message });
     }
 }
Пример #2
0
 /// <summary>
 /// </summary>
 /// <param name="message"></param>
 private static void UIThreadCallback(AsyncTaskMessage message)
 {
     message.Task.RaiseResultPostedEvent(message.Data, message.PercentComplete, message.IsComplete);
 }