public static void Show(string title, Exception exc) { try { var srcName = Assembly.GetEntryAssembly().GetName().Name; try { if (!EventLog.Exists(srcName)) { EventLog.WriteEntry(srcName, exc.ToString(), EventLogEntryType.Error); } } catch {; } var eb = new ErrorBox(title, exc.Message, exc.ToString()); eb.ShowDialog(); } catch {; } }
public static void Show(string title, string message, string details) { var eb = new ErrorBox(title, message, details); eb.ShowDialog(); }