Beispiel #1
0
        public static MessageBoxIcon AlertToMessageBox(AlertMessage.MessageType type)
        {
            switch (type)
            {
            case AlertMessage.MessageType.Error:
                return(MessageBoxIcon.Error);

            case AlertMessage.MessageType.Success:
                return(MessageBoxIcon.Information);

            default:
                return(MessageBoxIcon.Warning);
            }
        }
Beispiel #2
0
        private static UCAlert.AlertType AlertMessageTypeToUCAlertType(AlertMessage.MessageType type)
        {
            switch (type)
            {
            case AlertMessage.MessageType.Error:
                return(UCAlert.AlertType.Danger);

            case AlertMessage.MessageType.Warning:
                return(UCAlert.AlertType.Warning);

            default:
                return(UCAlert.AlertType.Success);
            }
        }