This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// Refresh test with ID
/// </summary>
public class RefreshTestRequestEvent : PubSubEvent<string> { }
}

View File

@@ -0,0 +1,12 @@
using 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 : PubSubEvent<bool> { }
}

View File

@@ -0,0 +1,34 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class ShiftT0Event : PubSubEvent<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;
}
}
}

View File

@@ -0,0 +1,11 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// Show/Hide T0 Cursor
/// </summary>
public class ShowT0CursorEvent : PubSubEvent<bool> { }
}

View File

@@ -0,0 +1,12 @@
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The Data Folder changed event.
/// </summary>
public class TestModificationChangedEvent : PubSubEvent<ITestModificationModel> { }
}

View File

@@ -0,0 +1,23 @@
using 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 : PubSubEvent<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;
}
}
}