示例#1
0
 private static void OnLoggedMessage(LoggedMessageEventArgs args)
 {
     try
     {
         EventHandler <LoggedMessageEventArgs> handler = LoggedMessage;
         if (null != handler)
         {
             handler(null, args);
         }
     }
     catch (Exception ex)
     {
         LogMessage($"Error firing LoggedMessage event handlers: {ex.Message}", LogEntryType.Error);
     }
 }
 private void TarkovTools_LoggedMessage(object sender, LoggedMessageEventArgs e)
 {
     logMessage($"TarkovTools API: {e.LogEntry.Message}", e.LogEntry.Type);
 }