32 lines
724 B
C#
32 lines
724 B
C#
using Prism.Events;
|
|
|
|
namespace DTS.Common.Events
|
|
{
|
|
/// <summary>
|
|
/// Event to inform app that it should mark itself busy or available
|
|
/// </summary>
|
|
/// <remarks>
|
|
///
|
|
/// </remarks>
|
|
public class PageModifiedEvent : PubSubEvent<PageModifiedArg> { }
|
|
|
|
public class PageModifiedArg
|
|
{
|
|
public enum Status
|
|
{
|
|
Clear,
|
|
Modified,
|
|
Saved
|
|
}
|
|
|
|
public Status PageStatus { get; }
|
|
public object Page { get; }
|
|
public bool Handled { get; set; }
|
|
public PageModifiedArg(Status status, object page)
|
|
{
|
|
PageStatus = status;
|
|
Page = page;
|
|
}
|
|
}
|
|
}
|