init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Refresh test with ID
|
||||
/// </summary>
|
||||
public class RefreshTestRequestEvent : CompositePresentationEvent<string> { }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// sets the property UseZeroForUnfiltered
|
||||
/// this controls whether 0 or P is used in isocode filter field
|
||||
/// when modifying an isocode from a filter
|
||||
/// </summary>
|
||||
public class SetUseZeroForUnfilteredEvent : CompositePresentationEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class ShiftT0Event : CompositePresentationEvent<ShiftT0EventArguments> { }
|
||||
public class ShiftT0EventArguments
|
||||
{
|
||||
public double T0Time { get; }
|
||||
public bool IsInitialization {get; }
|
||||
/// <summary>
|
||||
/// the steps/samples from T0 to shift
|
||||
/// </summary>
|
||||
public int T0Steps{ get; }
|
||||
/// <summary>
|
||||
/// whether shift is caused by a keypress (left/right arrow)
|
||||
/// </summary>
|
||||
public bool IsKeyPress { get; }
|
||||
public ShiftT0EventArguments(double t0, bool isInitialization)
|
||||
{
|
||||
T0Time = t0;
|
||||
IsInitialization = isInitialization;
|
||||
T0Steps = 0;
|
||||
IsKeyPress = false;
|
||||
}
|
||||
public ShiftT0EventArguments( int steps, bool isInitialization, bool isKeyPress)
|
||||
{
|
||||
T0Time = 0D;
|
||||
IsInitialization = isInitialization;
|
||||
IsKeyPress = isKeyPress;
|
||||
T0Steps = steps;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Show/Hide T0 Cursor
|
||||
/// </summary>
|
||||
public class ShowT0CursorEvent : CompositePresentationEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using DTS.Common.Interface;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The Data Folder changed event.
|
||||
/// </summary>
|
||||
public class TestModificationChangedEvent : CompositePresentationEvent<ITestModificationModel> { }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// this event is called currently whenever a test is modified by the viewer
|
||||
/// it's used currently by datapro to regenerate an roi when an event is modified
|
||||
/// </summary>
|
||||
public class TestModificationEvent : CompositePresentationEvent<TestModificationArgs> { }
|
||||
|
||||
public class TestModificationArgs
|
||||
{
|
||||
public string DataSetDirectory{ get; private set; }
|
||||
public string TestId{get; private set;}
|
||||
public TestModificationArgs(string dtsFilePath, string testId)
|
||||
{
|
||||
DataSetDirectory = dtsFilePath;
|
||||
TestId = testId;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user