35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|