namespace Yw.WinFrmUI
{
///
/// 步骤管理器接口
///
public interface IWizardManagerAsync where T : class, new()
{
#region 事件
///
/// 选择页面改变事件
/// IWizardPage 选择的页面
/// int 页面索引
///
event Action, int> SelectedPageChangedEvent;
///
/// 选择页面状态改变事件
/// IWizardPage 选择的页面
/// int 页面索引
///
event Action, int> SelectedPageStateChangedEvent;
#endregion
#region 初始化
///
/// 初始化管理器
///
/// 步骤页面数组
void InitialManager(IWizardPageAsync[] pages);
#endregion
#region 选择
///
/// 选择页面
///
IWizardPageAsync SelectedPage { get; }
///
/// 选择索引
///
int SelectedIndex { get; }
#endregion
#region 操作
///
/// 上一步
///
Task Prev();
///
/// 下一步
///
Task Next();
///
/// 取消
///
Task Cancel();
///
/// 完成
///
Task Complete();
#endregion
}
}