public static void Error(string title, Exception e) { Action action = () => Message(e.GetType().Name, e.ToString()); NotificationBox.Error(title, $"A type {e.GetType().Name} error occurred", lclick: action).Throw(); }
public static void Error(string text) => NotificationBox.Error("Error", text).Throw();
public static void Error(string title, string text, Action lclick = null, Action rclick = null, EdgeType side = EdgeType.Left, Monitor monitor = null) => NotificationBox.Error(title, text, lclick, rclick, side, monitor).Throw();
public static void Warning(string text) => NotificationBox.Warning("Warning", text).Throw();
public static void Notification(object title, object text, Action lclick = null, Action rclick = null, EdgeType side = EdgeType.Left, Monitor monitor = null) => NotificationBox.Popup(title?.ToString(), text?.ToString(), lclick, rclick, side, monitor).Throw();
public static void Notification(object text) => NotificationBox.Popup(text?.ToString()).Throw();