init
This commit is contained in:
11
Common/DTS.Common/Events/TSRAIRGo/Arm.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/Arm.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class ArmEvent : PubSubEvent<ArmArg> { }
|
||||
|
||||
public class ArmArg
|
||||
{
|
||||
public bool Arm { get; set; }
|
||||
}
|
||||
}
|
||||
11
Common/DTS.Common/Events/TSRAIRGo/ClearIpAddress.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/ClearIpAddress.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class ClearIpAddressEvent : PubSubEvent<ClearIpAddressArg> { }
|
||||
|
||||
public class ClearIpAddressArg
|
||||
{
|
||||
public bool Clear { get; set; }
|
||||
}
|
||||
}
|
||||
18
Common/DTS.Common/Events/TSRAIRGo/DASSampleRateChanged.cs
Normal file
18
Common/DTS.Common/Events/TSRAIRGo/DASSampleRateChanged.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
|
||||
public class DASSampleRateChangedEvent : PubSubEvent<DASSampleRateArg> { }
|
||||
public class DASListChangedEvent : PubSubEvent<bool> { }
|
||||
|
||||
public class DASSampleRateArg
|
||||
{
|
||||
public int SampleRate { get; set; }
|
||||
}
|
||||
}
|
||||
11
Common/DTS.Common/Events/TSRAIRGo/Download.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/Download.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
|
||||
public class DownloadEvent : PubSubEvent<DownloadArg> { }
|
||||
|
||||
public class DownloadArg
|
||||
{
|
||||
}
|
||||
}
|
||||
11
Common/DTS.Common/Events/TSRAIRGo/IpAddressToPing.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/IpAddressToPing.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class IpAddressToPingEvent : PubSubEvent<IpAddressToPingArg> { }
|
||||
|
||||
public class IpAddressToPingArg
|
||||
{
|
||||
public string IpAddress { get; set; }
|
||||
}
|
||||
}
|
||||
47
Common/DTS.Common/Events/TSRAIRGo/LevelTrigger.cs
Normal file
47
Common/DTS.Common/Events/TSRAIRGo/LevelTrigger.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
//FB 39466 Events to notify DAS and System Settings
|
||||
public class SystemSettingsLevelTriggerChangedEvent : PubSubEvent<LevelTriggerArg> { }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S101:Types should be named in PascalCase", Justification = "DAS allowed")]
|
||||
public class DASLevelTriggerChangedEvent : PubSubEvent<LevelTriggerArg> { }
|
||||
|
||||
public class LevelTriggerArg
|
||||
{
|
||||
public string LevelTriggerText { get; set; }
|
||||
public bool? LevelTriggerAxis1 { get; set; }
|
||||
public bool? LevelTriggerAxis2 { get; set; }
|
||||
public bool? LevelTriggerAxis3 { get; set; }
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
LevelTriggerArg lt = obj as LevelTriggerArg;
|
||||
if (obj == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LevelTriggerAxis1.HasValue && lt.LevelTriggerAxis1.HasValue)
|
||||
{
|
||||
return LevelTriggerAxis1.Value && lt.LevelTriggerAxis1.Value;
|
||||
}
|
||||
else if (LevelTriggerAxis2.HasValue && lt.LevelTriggerAxis2.HasValue)
|
||||
{
|
||||
return LevelTriggerAxis2.Value && lt.LevelTriggerAxis2.Value;
|
||||
}
|
||||
else if (LevelTriggerAxis3.HasValue && lt.LevelTriggerAxis3.HasValue)
|
||||
{
|
||||
return LevelTriggerAxis3.Value && lt.LevelTriggerAxis3.Value;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(LevelTriggerText) && !string.IsNullOrEmpty(lt.LevelTriggerText))
|
||||
{
|
||||
return LevelTriggerText == lt.LevelTriggerText;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class NavigateFromTSRAIRGoToDataPROEvent : PubSubEvent<NavigateFromTSRAIRGoToDataPROArg> { }
|
||||
|
||||
public class NavigateFromTSRAIRGoToDataPROArg
|
||||
{
|
||||
}
|
||||
}
|
||||
10
Common/DTS.Common/Events/TSRAIRGo/NavigateToDashboard.cs
Normal file
10
Common/DTS.Common/Events/TSRAIRGo/NavigateToDashboard.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class NavigateToDashboardEvent : PubSubEvent<NavigateToDashboardArg> { }
|
||||
|
||||
public class NavigateToDashboardArg
|
||||
{
|
||||
}
|
||||
}
|
||||
11
Common/DTS.Common/Events/TSRAIRGo/RecordingModeChanged.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/RecordingModeChanged.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class SystemSettingsRecordingModeChangedEvent : PubSubEvent<RecordingModeArg> { }
|
||||
|
||||
public class RecordingModeArg
|
||||
{
|
||||
public string RecordingModeDisplayString { get; set; }
|
||||
}
|
||||
}
|
||||
7
Common/DTS.Common/Events/TSRAIRGo/RemoveDAS.cs
Normal file
7
Common/DTS.Common/Events/TSRAIRGo/RemoveDAS.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class RemoveDASEvent : PubSubEvent<string> { }
|
||||
public class AddDASEvent : PubSubEvent<string> { }
|
||||
}
|
||||
6
Common/DTS.Common/Events/TSRAIRGo/StartStopDASScan.cs
Normal file
6
Common/DTS.Common/Events/TSRAIRGo/StartStopDASScan.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class StartStopDASScanEvent : PubSubEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class StartStopOverallStatusStateMachineEvent : PubSubEvent<bool> { }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class SystemSettingsSampleRateChangedEvent : PubSubEvent<SystemSettingsSampleRateArg> { }
|
||||
|
||||
public class SystemSettingsSampleRateArg
|
||||
{
|
||||
public int SampleRate { get; set; }
|
||||
}
|
||||
|
||||
public class SystemSettingsDurationChangedEvent : PubSubEvent<SystemSettingsDurationChangedArg> { }
|
||||
|
||||
public class SystemSettingsDurationChangedArg
|
||||
{
|
||||
public double Duration { get; set; }
|
||||
}
|
||||
}
|
||||
18
Common/DTS.Common/Events/TSRAIRGo/SystemStatus.cs
Normal file
18
Common/DTS.Common/Events/TSRAIRGo/SystemStatus.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class SystemStatusEvent : PubSubEvent<SystemStatusArg> { }
|
||||
|
||||
public class SystemStatusArg
|
||||
{
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
public class SystemErrorEvent : PubSubEvent<SystemErrorArg> { }
|
||||
|
||||
public class SystemErrorArg
|
||||
{
|
||||
public string Error { get; set; }
|
||||
}
|
||||
}
|
||||
11
Common/DTS.Common/Events/TSRAIRGo/Trigger.cs
Normal file
11
Common/DTS.Common/Events/TSRAIRGo/Trigger.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
|
||||
public class TriggerEvent : PubSubEvent<TriggerArg> { }
|
||||
|
||||
public class TriggerArg
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user