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.
38 lines
1.3 KiB
38 lines
1.3 KiB
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<IProgress<double>, 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);
|
|
}
|
|
}
|
|
|