using AIK.Common.Enum; using AIK.Common.IconString; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace AIK.Common.Interface { public interface IModalDialogService { Task ShowProgressAsync( Func, CancellationToken, Task<(bool, string)>> work, string title = "请稍候", string message = "正在烧录...", bool canCancel = true); Task ShowDialogAsync( string title = "请稍候", string message = "正在处理...", MessageTypeEnum typeEnum = MessageTypeEnum.Info, bool canCancel = true, bool isAutoClose = true, int closeTime = 3000); Task ShowTipsDialogAsync( string message = "已完成", MessageTypeEnum typeEnum = MessageTypeEnum.Info, bool canCancel = true, bool isAutoClose = true, int closeTime = 3000); Task ShowQRCodeDialogAsync( IServiceProvider serviceProvider, string title = "请稍候", string message = "正在处理...", MessageTypeEnum typeEnum = MessageTypeEnum.Info, bool canCancel = true, bool isAutoClose = true, int closeTime = 3000); } }