public static Notification ShowNotification(string message, Color color, int duration = -1, bool dispose = true) { var notif = new Notification(message).SetTextColor(color); Notifications.AddNotification(notif); if (dispose) { Utility.DelayAction.Add(duration, () => notif.Dispose()); } return notif; }