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); } }
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); } }