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,14 @@
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
namespace DTS.Common.Events
{
public class PSDReportGRMSValuesUpdatedEvent : PubSubEvent<PSDReportGRMSValuesUpdatedEventArg> { }
public class PSDReportGRMSValuesUpdatedEventArg
{
public IChannelGRMSSummary[] Values { get; set; }
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
namespace DTS.Common.Events
{
public class PSDReportSettingsChangedEvent : PubSubEvent<PSDReportSettingsChangedEventArg> { }
public class PSDReportSettingsChangedEventArg
{
public IPSDReportSettingsModel Model { get; set; }
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using DTS.Common.Base;
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.Events
{
public class SaveReportToCSVRequestedEvent : PubSubEvent<SaveReportToCSVRequestedEventArgs> { }
public class SaveReportToCSVRequestedEventArgs
{
public string Directory { get; set; }
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using DTS.Common.Base;
using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.Events
{
public class SaveReportToPDFRequestedEvent : PubSubEvent<SaveReportToPDFRequestedEventArgs> { }
public class SaveReportToPDFRequestedEventArgs
{
public string Directory { get; set; }
public IBaseViewModel ParentVM { get; set; }
}
}

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;
}
}
}

View File

@@ -0,0 +1,15 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class ChartAxisChangedEvent : PubSubEvent<ChartAxisChangedEventArg> { }
public class ChartAxisChangedEventArg
{
public IBaseViewModel ParentVM { get; set; }
public string Axis { get; set; }
public double MinValue { get; set; }
public double MaxValue { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The Data Folder changed event.
/// </summary>
public class ChartOptionsChangedEvent : PubSubEvent<ChartOptionsChangedEventArg> { }
public class ChartOptionsChangedEventArg
{
public IBaseViewModel ParentVM { get; set; }
public IChartOptionsModel Model { get; set; }
public string ChartType { get; set; }
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,11 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// A request was made to save the current chart to PDF.
/// </summary>
public class SaveToPDFRequestedEvent : PubSubEvent<string> { }
}

View File

@@ -0,0 +1,20 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class FilterParameterArgs
{
/// <summary>
/// Filter requester
/// </summary>
public IBaseViewModel Requester { get; set; }
/// <summary>
/// Filter parameter
/// </summary>
public string Param { get; set; }
}
public class FilterParameterChangedEvent : PubSubEvent<FilterParameterArgs> { }
}

View File

@@ -0,0 +1,7 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class CalibrationBehaviorSettableInViewerChangedEvent : PubSubEvent<bool> { }
}

View File

@@ -0,0 +1,8 @@
using System.Windows;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class ViewerSettingsVisibilityChangedEvent : PubSubEvent<Visibility> { }
}

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The selected Test Summary list changed event.
/// </summary>
public class ChannelSelectionChangeNotification : PubSubEvent<List<ITestChannel>> { }
}

View File

@@ -0,0 +1,10 @@
using Prism.Events;
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The selected Test Summary list changed event.
/// </summary>
public class ChannelSelectionCountNotification : PubSubEvent<int> { }
}

View File

@@ -0,0 +1,26 @@
using System.Collections.Generic;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Graphs changed event.
/// </summary>
public class ChannelsModificationLineFitNotification : PubSubEvent<LineFitArgs> { }
public class LineFitArgs
{
public ITestChannel Channel { get; }
public ulong StartIndex { get; }
public ulong EndIndex { get; }
public LineFitArgs(ITestChannel channel, ulong startIndex, ulong endIndex)
{
Channel = channel;
StartIndex = startIndex;
EndIndex = endIndex;
}
}
}

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Graphs changed event.
/// </summary>
public class ChannelsModificationNotification : PubSubEvent<List<ITestChannel>> { }
}

View File

@@ -0,0 +1,16 @@
using DTS.Common.Base;
using Prism.Events;
namespace DTS.Common.Events
{
//A datafile was selected, but don't want to trip all of the DataFolderChangedEvent subscriptions
public class DataFileSelectedEvent : PubSubEvent<DataFileSelectionArg> { }
public class DataFileSelectionArg
{
public string File { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,32 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The Data Folder changed event.
/// </summary>
public class DataFolderChangedEvent : PubSubEvent<DataFolderSelectionArg> { }
public class DataFolderSelectionArg
{
public string Path { get; set; }
public string File { get; set; }
/// <summary>
/// whether to set the given test as selected in ui and viewer
/// 16158 Browse button on View Data tab not functiona
/// </summary>
public bool SetSelected { get; set; } = false;
/// <summary>
/// Whether (Export) or not (View) to select all of the tests
/// 43387 Export multiple events
/// </summary>
public bool SelectAll { get; set; } = false;
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using DTS.Common.Base;
using Prism.Events;
namespace DTS.Common.Events
{
public class GraphChannelReadCalcProgressChangedEvent : PubSubEvent<GraphChannelReadCalcProgressChangedEventArgs> { }
public class GraphChannelReadCalcProgressChangedEventArgs
{
public string ProgressMessage { get; set; }
public double ProgressPercent { get; set; }
public IBaseViewModel GraphVM { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Tests changed event.
/// </summary>
public class GraphChannelsReadCompletedNotification : PubSubEvent<GraphChannelsReadCompletedNotificationArgs> { }
public class GraphChannelsReadCompletedNotificationArgs
{
public bool IsReadCompleted { get; set; }
public IBaseViewModel GraphVM { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Tests changed event.
/// </summary>
public class GraphClearNotification : PubSubEvent<GraphClearNotificationArg> { }
public class GraphClearNotificationArg
{
public bool GraphClear { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Tests changed event.
/// </summary>
public class GraphLoadedCountNotification : PubSubEvent<GraphLoadedCountNotificationArg> { }
public class GraphLoadedCountNotificationArg
{
public int LoadedCount { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of loaded Tests changed event.
/// </summary>
public class GraphSelectedChannelCountNotification : PubSubEvent<GraphSelectedChannelCountNotificationArg> { }
public class GraphSelectedChannelCountNotificationArg
{
public int SelectedChannelCount { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Tests changed event.
/// </summary>
public class GraphSelectedChannelsNotification : PubSubEvent<GraphSelectedChannelsNotificationArg> { }
public class GraphSelectedChannelsNotificationArg
{
public List<ITestChannel> SelectedChannels { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of loaded Events changed event.
/// </summary>
public class GraphSelectedEventCountNotification : PubSubEvent<GraphSelectedEventCountNotificationArg> { }
public class GraphSelectedEventCountNotificationArg
{
public int SelectedEventCount { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using DTS.Common.Base;
using DTS.Common.Interface;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Events changed event.
/// </summary>
public class GraphSelectedEventsNotification : PubSubEvent<GraphSelectedEventsNotificationArg> { }
public class GraphSelectedEventsNotificationArg
{
public System.ComponentModel.BindingList<ITestEvent> SelectedEvents { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of loaded Tests changed event.
/// </summary>
public class TestLoadedCountNotification : PubSubEvent<TestLoadedCountNotificationArg> { }
public class TestLoadedCountNotificationArg
{
public int LoadedCount { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
using DTS.Common.Base;
using DTS.Common.Interface.TestDefinition;
using Prism.Events;
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The selected Test Summary list changed event.
/// </summary>
public class TestSummaryChangeNotification : PubSubEvent<TestSummaryChangeNotificationArg> { }
public class TestSummaryChangeNotificationArg
{
public List<ITestSummary> SummaryList { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
public int TotalSummaryCount { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using DTS.Common.Base;
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
/// <summary>
/// The number of selected Tests changed event.
/// </summary>
public class TestSummaryCountNotification : PubSubEvent<TestSummaryCountNotificationArg> { }
public class TestSummaryCountNotificationArg
{
public int SummaryCount { get; set; }
/// <summary>
/// 24417 start pulling apart viewer to allow reuse for PSD reports
/// </summary>
public IBaseViewModel ParentVM { get; set; }
}
}