init
This commit is contained in:
31
Common/DTS.CommonCore/Events/PageModifiedEvent.cs
Normal file
31
Common/DTS.CommonCore/Events/PageModifiedEvent.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Microsoft.Practices.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 : CompositePresentationEvent<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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user