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

49 lines
1.5 KiB
C#

using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// Event to inform app that page navigation has been requested
/// 15125 Navigate to selected sensor from run test diagnostics
/// </summary>
/// <remarks>
///
/// </remarks>
public class PageNavigationRequestEvent : CompositePresentationEvent<PageNavigationRequest> { }
/// <summary>
/// a page navigation request, specifies who requested, and where they requested to go
/// </summary>
public class PageNavigationRequest
{
/// <summary>
/// places to go
/// </summary>
public enum Destinations
{
Sensor,
//16056 Default landing page after login should be Test Setup
TestSetups
}
/// <summary>
/// where to go
/// </summary>
public Destinations Destination{ get; private set; }
/// <summary>
/// any information needed to navigate to the destination
/// </summary>
public object DestinationArg { get; private set; }
/// <summary>
/// who requested the navigation
/// </summary>
public object Caller { get; private set; }
public PageNavigationRequest(Destinations destination, object destinationArg, object caller)
{
Destination = destination;
DestinationArg = destinationArg;
Caller = caller;
}
}
}