using Prism.Events; // ReSharper disable CheckNamespace namespace DTS.Common.Events.Sensors.SensorsList { /// /// FB 13120 this event is used to notify the save function when the new sensor has been added in the setting menu /// public class SensorSavedEvent : PubSubEvent { } /// /// FB 13120 this event is used in selecting the default filter in filter list when adding or deleting a sensor /// public class SensorUpdatedEvent : PubSubEvent { } /// /// 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 /// public class SensorChangedEvent : PubSubEvent { } public class SensorChangedArgs { /// /// serial number of the sensor that changed (currently not used) /// This has been put in place for future use /// public string SerialNumber { get; } /// /// database id of the sensor that changed (currently not used) /// this has been put in place for future use /// public int DatabaseId { get; } /// /// used to signify the Current Model is being loaded /// public bool CurrentModelLoading { get; } /// /// used to signify NonLinear has changed /// public bool NonLinearChanged { get; } /// /// used to signify sensitivity has changed /// public bool SensitivityChanged { get; } /// /// used to indicate proportionality has changed /// public bool IsProportionalChanged { get; } /// /// used to indicate an excitation setting changed /// 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; } } }