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