init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
16
Common/DTS.Common/Events/TTSImport/EIDMappingEvent.cs
Normal file
16
Common/DTS.Common/Events/TTSImport/EIDMappingEvent.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Interface.DataRecorders;
|
||||
using 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 : PubSubEvent<IDictionary<string, string>> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Classes;
|
||||
using 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 : PubSubEvent<StatusAndProgressBarEventArgs> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Interface.DataRecorders;
|
||||
using 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 : PubSubEvent<List<IDASHardware>> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
@@ -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> { }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ReadFileStatusArg> { }
|
||||
|
||||
public class ReadFileStatusArg
|
||||
{
|
||||
public bool Status { get; set; }
|
||||
public ITTSSetup TTSSetup { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using DTS.Common.Interface.TestSetups.TestSetupsList;
|
||||
using 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 : PubSubEvent<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 : PubSubEvent<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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using 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 : PubSubEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
using 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 : PubSubEvent<ITTSSetup> { }
|
||||
}
|
||||
Reference in New Issue
Block a user