Files
DP44/Common/DTS.CommonCore/Events/AppStatusEvent.cs
2026-04-17 14:55:32 -04:00

45 lines
1.4 KiB
C#

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 AppStatusEvent : CompositePresentationEvent<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 : CompositePresentationEvent<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
}
}