init
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class CalibrationBehaviorSettingChangedEvent : PubSubEvent<DTS.Common.Enums.Sensors.CalibrationBehaviors> { }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
public class ExportCalibrationBehaviorSettingChangedEvent : PubSubEvent<DTS.Common.Enums.Sensors.CalibrationBehaviors> { }
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using DTS.Common.Enums.Sensors;
|
||||
using DTS.Common.Interface.Sensors;
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events.Sensors
|
||||
{
|
||||
/// <summary>
|
||||
/// this event is used to notify that the sensor filter ( or the iso code filter field) has changed
|
||||
/// this is used to update the ISOCodes or filters
|
||||
/// </summary>
|
||||
public class SensorFilterTypeChangedEvent : PubSubEvent<SensorFilterTypeChangedEventArgs> { }
|
||||
|
||||
public class SensorFilterTypeChangedEventArgs
|
||||
{
|
||||
public char ISOCodeChar { get; private set; }
|
||||
public enum EventTypes { ISOCodeChar, FilterClass };
|
||||
public EventTypes EventType { get; private set; }
|
||||
public FilterClassType FilterClass { get; private set; }
|
||||
public ISensorCalibration Calibration { get; private set; }
|
||||
public ISensorData Sensor { get; private set; }
|
||||
public bool UseISOCodeFilterMapping { get; private set; }
|
||||
public bool UseZeroForUnfiltered { get; private set; }
|
||||
public SensorFilterTypeChangedEventArgs(char code, ISensorData sensor, ISensorCalibration sensorCalibration, bool useISOCodeFilterMapping, bool bUseZeroForUnfiltered)
|
||||
{
|
||||
ISOCodeChar = code;
|
||||
EventType = EventTypes.ISOCodeChar;
|
||||
Sensor = sensor;
|
||||
Calibration = sensorCalibration;
|
||||
UseISOCodeFilterMapping = useISOCodeFilterMapping;
|
||||
UseZeroForUnfiltered = bUseZeroForUnfiltered;
|
||||
}
|
||||
public SensorFilterTypeChangedEventArgs(FilterClassType filterClassType, ISensorData sensor, ISensorCalibration sensorCalibration, bool useISOCodeFilterMapping, bool bUseZeroForUnfiltered)
|
||||
{
|
||||
FilterClass = filterClassType;
|
||||
Sensor = sensor;
|
||||
Calibration = sensorCalibration;
|
||||
EventType = EventTypes.FilterClass;
|
||||
UseISOCodeFilterMapping = useISOCodeFilterMapping;
|
||||
UseZeroForUnfiltered = bUseZeroForUnfiltered;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
using Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Events.Sensors.SensorsList
|
||||
{
|
||||
/// <summary>
|
||||
/// FB 13120 this event is used to notify the save function when the new sensor has been added in the setting menu
|
||||
/// </summary>
|
||||
public class SensorSavedEvent : PubSubEvent<double>
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// FB 13120 this event is used in selecting the default filter in filter list when adding or deleting a sensor
|
||||
/// </summary>
|
||||
public class SensorUpdatedEvent : PubSubEvent<bool>
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// used to indicate a sensor has changed
|
||||
/// currently used for sensitivity controls (supported excitation/sensitivity) to notify other consumers that the
|
||||
/// user has changed a value
|
||||
/// </summary>
|
||||
public class SensorChangedEvent : PubSubEvent<SensorChangedArgs>
|
||||
{
|
||||
}
|
||||
|
||||
public class SensorChangedArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// serial number of the sensor that changed (currently not used)
|
||||
/// This has been put in place for future use
|
||||
/// </summary>
|
||||
public string SerialNumber { get; }
|
||||
/// <summary>
|
||||
/// database id of the sensor that changed (currently not used)
|
||||
/// this has been put in place for future use
|
||||
/// </summary>
|
||||
public int DatabaseId { get; }
|
||||
/// <summary>
|
||||
/// used to signify the Current Model is being loaded
|
||||
/// </summary>
|
||||
public bool CurrentModelLoading { get; }
|
||||
/// <summary>
|
||||
/// used to signify NonLinear has changed
|
||||
/// </summary>
|
||||
public bool NonLinearChanged { get; }
|
||||
/// <summary>
|
||||
/// used to signify sensitivity has changed
|
||||
/// </summary>
|
||||
public bool SensitivityChanged { get; }
|
||||
/// <summary>
|
||||
/// used to indicate proportionality has changed
|
||||
/// </summary>
|
||||
public bool IsProportionalChanged { get; }
|
||||
/// <summary>
|
||||
/// used to indicate an excitation setting changed
|
||||
/// </summary>
|
||||
public bool ExcitationChanged { get; }
|
||||
|
||||
public SensorChangedArgs(string serialNumber, int databaseId, bool currentModelLoading, bool nonLinearChanged, bool sensitivityChanged,
|
||||
bool isProportionalChanged, bool excitationChanged)
|
||||
{
|
||||
SerialNumber = serialNumber;
|
||||
DatabaseId = databaseId;
|
||||
CurrentModelLoading = currentModelLoading;
|
||||
NonLinearChanged = nonLinearChanged;
|
||||
SensitivityChanged = sensitivityChanged;
|
||||
IsProportionalChanged = isProportionalChanged;
|
||||
ExcitationChanged = excitationChanged;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.Sensors.SensorsList
|
||||
{
|
||||
|
||||
/// <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 SensorsListSensorSelectedEvent : PubSubEvent<string[]> { }
|
||||
}
|
||||
Reference in New Issue
Block a user