Exemplo n.º 1
0
 /// <summary>
 /// Delegate invoked when a message has been posted.
 /// </summary>
 private void OnMessagePostStarted(object sender, MessagePostEventArgs args)
 {
     Platform.UIThread(this, delegate
     {
         if (args.Message != null && args.Message.Body != null)
         {
             string statusText = string.Format(Resources.StatusMessagePost, args.Message.Body.FirstLine());
             FoldersTree.MainForm.StartStatusProgressSpinner(statusText);
         }
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Delegate invoked when a message is being posted.
 /// </summary>
 private void OnMessagePostCompleted(object sender, MessagePostEventArgs args)
 {
     Platform.UIThread(this, () => FoldersTree.MainForm.StopStatusProgressSpinner());
 }