using Microsoft.Practices.Prism.Events; // ReSharper disable CheckNamespace namespace DTS.Common.Events { public class ShiftT0Event : CompositePresentationEvent { } public class ShiftT0EventArguments { public double T0Time { get; } public bool IsInitialization {get; } /// /// the steps/samples from T0 to shift /// public int T0Steps{ get; } /// /// whether shift is caused by a keypress (left/right arrow) /// 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; } } }