Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public static void Error(string text) => NotificationBox.Error("Error", text).Throw();
Esempio n. 3
0
 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();
Esempio n. 4
0
 public static void Warning(string text) => NotificationBox.Warning("Warning", text).Throw();
Esempio n. 5
0
 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();
Esempio n. 6
0
 public static void Notification(object text) => NotificationBox.Popup(text?.ToString()).Throw();