兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
852 B

using AIK.Common.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIK.Common.IconString
{
public static class MessageStyle
{
public static (string Icon, string Color) GetByType(MessageTypeEnum type)
{
return type switch
{
MessageTypeEnum.Info => (IconStringHelper.InfoIcon, MessageColors.Info),
MessageTypeEnum.Warning => (IconStringHelper.WarningIcon, MessageColors.Warning),
MessageTypeEnum.Error => (IconStringHelper.ErrorIcon, MessageColors.Error),
MessageTypeEnum.Success => (IconStringHelper.SuccessIcon, MessageColors.Success),
_ => (IconStringHelper.InfoIcon, MessageColors.Info), // 默认 info
};
}
}
}