public static void ErrorMessage(string message, Exception ex, string context) { FL.Error(ex, context); FieldLogScreenshot.CreateForMainWindow(); if (message != null) { FL.ShowErrorDialog(message, ex); } else { FL.ShowErrorDialog(ex); } }
public static void ErrorMessage(string message) { FL.Error(message); FieldLogScreenshot.CreateForMainWindow(); MessageBox.Show(message, messageBoxTitle, MessageBoxButton.OK, MessageBoxImage.Error); }