Esempio n. 1
0
 public void LogCritical(string data, string source)
 {
     if (ignoredMessages.Any(data.Contains))
     {
         return;
     }
     ContentChanged = true;
     messages.Add(new AnalogyLogMessage(data, AnalogyLogLevel.Critical, AnalogyLogClass.General, source));
     OnNewError?.Invoke(this, new EventArgs());
 }
Esempio n. 2
0
 public void LogErrorMessage(AnalogyLogMessage error)
 {
     if (ignoredMessages.Any(error.Text.Contains))
     {
         return;
     }
     ContentChanged = true;
     messages.Add(error);
     OnNewError?.Invoke(this, new EventArgs());
 }
 public void LogErrorMessage(AnalogyLogMessage error)
 {
     messages.Add(error);
     OnNewError?.Invoke(this, new EventArgs());
 }
 public void LogError(string error)
 {
     messages.Add(new AnalogyLogMessage(error, AnalogyLogLevel.Error, AnalogyLogClass.General, "Analogy"));
     OnNewError?.Invoke(this, new EventArgs());
 }
Esempio n. 5
0
 private static void OnNewErrorEvent(ErrorEnumArgs e)
 {
     OnNewError?.Invoke(e);
 }