コード例 #1
0
 public static void GuiLogMessage(GuiLogNotificationEventHandler del, IPlugin plugin, GuiLogEventArgs args)
 {
     if (del == null)
     {
         return;
     }
     Delegate[] delegates = del.GetInvocationList();
     if (AsynchronousGuiLogMessage)
     {
         AsyncCallback cleanUp = delegate(IAsyncResult asyncResult)
         {
             asyncResult.AsyncWaitHandle.Close();
         };
         foreach (GuiLogNotificationEventHandler sink in delegates)
         {
             sink.BeginInvoke(plugin, args, cleanUp, null);
         }
     }
     else
     {
         foreach (GuiLogNotificationEventHandler sink in delegates)
         {
             sink.Invoke(plugin, args);
         }
     }
 }
コード例 #2
0
 public static void GuiLogMessage(GuiLogNotificationEventHandler del, IPlugin plugin, string message, NotificationLevel level)
 {
     GuiLogMessage(del, plugin, new GuiLogEventArgs(message, plugin, level));
 }
コード例 #3
0
ファイル: EventsHelper.cs プロジェクト: JarLob/CrypTool2
 public static void GuiLogMessage(GuiLogNotificationEventHandler handler, IPlugin plugin, string message)
 {
     GuiLogMessage(handler, plugin, new GuiLogEventArgs(message, plugin, NotificationLevel.Debug));
 }