Пример #1
0
 private void LogMessageReceived(LogMessage logMessage)
 {
     App.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         AllLogMessages.Add(logMessage);
         if (logMessage.Type.HasFlag(SelectedLogType))
         {
             SelectedLogMessages.Add(logMessage);
         }
     }));
     LogManager.AppendToLog(logMessage);
 }
Пример #2
0
 public static void AppendToLog(LogMessage message)
 {
     AppendToLog(message.ToString());
 }