Files
DP44/Common/DTS.CommonCore/.svn/pristine/8f/8fb5170f6d89d8647a10417475c5e8f2742ec0fb.svn-base

75 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
using Microsoft.Practices.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 : CompositePresentationEvent<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 : CompositePresentationEvent<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 : CompositePresentationEvent<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;
}
}
}