Beispiel #1
0
        public static void ShowCustom(string message, int interval, Image image = null, Color color = default, Form parent = null)
        {
            var frm = new frmAlert();

            frm.ParentForm = parent;
            frm.ShowAlert(message, AlertType.Custom, interval, image, color == default ? Color.FromArgb(83, 92, 104) : color);
        }
Beispiel #2
0
        public static void ShowError(string message, int interval, Form parent = null)
        {
            var frm = new frmAlert();

            frm.ParentForm = parent;
            frm.ShowAlert(message, AlertType.Error, interval);
        }
Beispiel #3
0
        public static void ShowError(string message, int interval)
        {
            var frm = new frmAlert();

            frm.ShowAlert(message, AlertType.Error, interval);
        }
Beispiel #4
0
        public static void ShowWarning(string message, int interval)
        {
            var frm = new frmAlert();

            frm.ShowAlert(message, AlertType.Warning, interval);
        }
Beispiel #5
0
        public static void ShowInformation(string message, int interval)
        {
            var frm = new frmAlert();

            frm.ShowAlert(message, AlertType.Information, interval);
        }
Beispiel #6
0
        public static void ShowSucess(string message, int interval)
        {
            var frm = new frmAlert();

            frm.ShowAlert(message, AlertType.Sucess, interval);
        }