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.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events.TTSImport
{
/// <summary>
/// The AssignedChannelsChangedEvent event.
/// </summary>
///
/// <remarks>This event is published whenever the assigned channels are changed.</remarks>
///
public class AssignedChannelsChangedEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,16 @@
using System.Collections.Generic;
using DTS.Common.Interface.DataRecorders;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events.TTSImport
{
/// <summary>
/// The EIDMappingEvent event.
/// this event is published whenever we have determined a hardware channel to sensor id mapping
/// </summary>
/// <remarks>
/// published value is a mapping of sensorId to hardwareChannelId
/// </remarks>
public class EIDMappingEvent : CompositePresentationEvent<IDictionary<string,string>> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Classes;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The StatusAndProgressBarEvent event.
/// </summary>
///
/// <remarks>This event is used to update the Status and/or Progress bars.</remarks>
///
public class StatusAndProgressBarEvent : CompositePresentationEvent<StatusAndProgressBarEventArgs> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportArmedRunTestEvent event.
/// </summary>
///
/// <remarks>This event is used by the Hardware Scan step to tell the page to jump to the Arm step in Run Test.</remarks>
///
public class TTSImportArmedRunTestEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
using DTS.Common.Interface.DataRecorders;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportHardwareScanFinishedEvent event.
/// </summary>
///
/// <remarks>This event is used by the page to tell the Hardware Scan view model to update the list of DAS.</remarks>
///
public class TTSImportHardwareScanFinishedEvent : CompositePresentationEvent<List<IDASHardware>> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportHardwareScanRunEvent event.
/// </summary>
///
/// <remarks>This event is used by the Hardware Scan step to tell the page to ping hardware.</remarks>
///
public class TTSImportHardwareScanRunEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportReadFileFinishedEvent event.
/// </summary>
///
/// <remarks>This event has to be used by the Read File step to indicate that it has finished.</remarks>
///
public class TTSImportReadFileFinishedEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,25 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportReadFileStatusEvent event.
/// </summary>
///
/// <remarks>
/// This event is used to determine the success/failure of reading a file.
/// If Status is True, the read was successful and TTSSetup contains the Test Setup that was read.
/// If Status is False, the read was not successful, and ErrorMessage contains the reason.
/// </remarks>
///
public class TTSImportReadFileStatusEvent : CompositePresentationEvent<ReadFileStatusArg> { }
public class ReadFileStatusArg
{
public bool Status { get; set; }
public ITTSSetup TTSSetup { get; set; }
public string ErrorMessage { get; set; }
}
}

View File

@@ -0,0 +1,62 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using DTS.Common.Interface.TestSetups.TestSetupsList;
using Microsoft.Practices.Prism.Events;
using System;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportReadXMLFileEvent event.
/// </summary>
///
/// <remarks>This event is used by the Read File step to tell the page to read an xml file.</remarks>
public class TTSImportReadXMLFileRequestEvent : CompositePresentationEvent<TTSImportReadXMLFileRequestArg> { }
public class TTSImportReadXMLFileRequestArg
{
public ITTSSetup TestSetup { get; private set; }
public string FilePath { get; private set; }
public TTSImportReadXMLFileRequestArg(string filePath, ITTSSetup setup)
{
FilePath = filePath;
TestSetup = setup;
}
}
public class TTSImportReadXMLFileResponseEvent : CompositePresentationEvent<TTSImportReadXMLFileResponseEventArg>
{
}
public class TTSImportReadXMLLevelTrigger
{
public double Threshold { get; private set; }
public string SensorSerialNumber { get; private set; }
public TTSImportReadXMLLevelTrigger(double threshold, string sensorSerialNumber)
{
Threshold = threshold;
SensorSerialNumber = sensorSerialNumber;
}
}
/// <summary>
/// this event is a response to a read file request
/// </summary>
public class TTSImportReadXMLFileResponseEventArg
{
public ITestSetup TestSetup { get; private set; }
public string [] Errors { get; private set; }
public ITTSSetup TTSSetup { get; private set; }
public TTSImportReadXMLLevelTrigger [] LevelTriggers { get; private set; }
public TTSImportReadXMLFileResponseEventArg(ITestSetup setup, string[] errors, ITTSSetup ttsSetup,
TTSImportReadXMLLevelTrigger [] levelTriggers)
{
TestSetup = setup;
Errors = errors;
TTSSetup = ttsSetup;
LevelTriggers = levelTriggers;
}
}
}

View File

@@ -0,0 +1,15 @@
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportSavedChangesStatusEvent event.
/// </summary>
///
/// <remarks>
/// This event is used to communicate whether changes have been saved or not.
/// </remarks>
///
public class TTSImportSavedChangesStatusEvent : CompositePresentationEvent<bool> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportSummaryImportEvent event.
/// </summary>
///
/// <remarks>This event is used by the Summary step to indicate that the Import button was clicked.</remarks>
///
public class TTSImportSummaryImportEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportSummaryRunTestEvent event.
/// </summary>
///
/// <remarks>This event is used by the Summary step to tell the page to run the test.</remarks>
///
public class TTSImportSummaryRunTestEvent : CompositePresentationEvent<ITTSSetup> { }
}

View File

@@ -0,0 +1,14 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Microsoft.Practices.Prism.Events;
namespace DTS.Common.Events.TTSImport
{
/// <summary>
/// The TTSImportTestSetupChangedEvent event.
/// </summary>
///
/// <remarks>This event is published whenever the Test Setup is changed.</remarks>
///
public class TTSImportTestSetupChangedEvent : CompositePresentationEvent<ITTSSetup> { }
}