38 lines
841 B
C#
38 lines
841 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>
|
|
/// 对话主机ViewModel基类
|
|
/// </summary>
|
|
public interface IHostDialogAware
|
|
{
|
|
/// <summary>
|
|
/// DialogHost顶级节点
|
|
/// </summary>
|
|
string IdentifierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 页面初始化前传递参数事件
|
|
/// </summary>
|
|
/// <param name="parameters"></param>
|
|
/// <returns></returns>
|
|
void OnDialogOpened(IDialogParameters parameters);
|
|
|
|
/// <summary>
|
|
/// 确认
|
|
/// </summary>
|
|
Task Save();
|
|
|
|
/// <summary>
|
|
/// 取消
|
|
/// </summary>
|
|
void Cancel();
|
|
}
|
|
}
|