/// <summary> /// Open custom alert with pre-set icon /// </summary> /// <param name="message">Alert message text</param> /// <param name="foregroundColor">Text color</param> /// <param name="backgroundColor">Background color</param> /// <param name="type">Alert type for pre-set image</param> /// <param name="delay">Delay in miliseconds. Default 2000 miliseconds</param> /// <param name="alertLocation"Alert location. Default BottomRight></param> public static void OpenAlert(string message, Color foregroundColor, Color backgroundColor, AlertType type, int delay = 2000, AlertLocation alertLocation = AlertLocation.BottomRight) { BrumAlert alert = new BrumAlert(message, foregroundColor, backgroundColor, type, delay, alertLocation); }
/// <summary> /// Default alert factory. /// </summary> /// <param name="message">Alert message text</param> /// <param name="type">Alert type</param> /// <param name="delay">Delay in miliseconds. Default 2000 miliseconds</param> /// <param name="alertLocation">Alert location. Default BottomRight</param> public static void OpenAlert(string message, AlertType type, int delay = 2000, AlertLocation alertLocation = AlertLocation.BottomRight) { BrumAlert alert = new BrumAlert(message, type, delay, alertLocation); }