75 lines
2.7 KiB
Plaintext
75 lines
2.7 KiB
Plaintext
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;
|
|
}
|
|
}
|
|
}
|