45 lines
1.3 KiB
C#
45 lines
1.3 KiB
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 AppStatusEvent : PubSubEvent<AppStatusArg> { }
|
|
/// <summary>
|
|
/// app status extended event
|
|
/// app status event notification providing additional information
|
|
/// 15648 Need busy cursor for view data tab
|
|
/// </summary>
|
|
public class AppStatusExEvent : PubSubEvent<AppStatusExArg> { }
|
|
|
|
public class AppStatusExArg
|
|
{
|
|
/// <summary>
|
|
/// status being notified
|
|
/// </summary>
|
|
public AppStatusArg Status { get; private set; }
|
|
/// <summary>
|
|
/// name of process notifying of status
|
|
/// </summary>
|
|
public string Name { get; private set; }
|
|
|
|
public AppStatusExArg(AppStatusArg status, string name)
|
|
{
|
|
Status = status;
|
|
Name = name;
|
|
}
|
|
}
|
|
public enum AppStatusArg
|
|
{
|
|
Busy,
|
|
Available,
|
|
Shutdown, //called when windows or the user session is ended (logged out)
|
|
Close, //called when the application is closed
|
|
UserLogout //called when a user is logged out
|
|
}
|
|
}
|