32 lines
848 B
C#
32 lines
848 B
C#
using Prism.Services.Dialogs;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CapMachine.Wpf.Services
|
|
{
|
|
/// <summary>
|
|
/// 对话主机服务接口
|
|
/// </summary>
|
|
public interface IHostDialogService : IDialogService
|
|
{
|
|
/// <summary>
|
|
/// 显示Dialog
|
|
/// </summary>
|
|
/// <param name="name"></param>
|
|
/// <param name="parameters"></param>
|
|
/// <param name="IdentifierName"></param>
|
|
/// <returns></returns>
|
|
Task<IDialogResult> ShowDialogAsync(
|
|
string name,
|
|
IDialogParameters parameters = null,
|
|
string IdentifierName = "Root");
|
|
|
|
IDialogResult ShowWindow(string name);
|
|
|
|
void Close(string IdentifierName, DialogResult dialogResult);
|
|
}
|
|
}
|