using CommunityToolkit.Mvvm.ComponentModel;
|
using NationalInstruments.TestStand.Interop.API;
|
|
namespace Plugin.SeqEditor.Entity.EditablePO
|
{
|
public class NumValTestEPO : BaseEPO
|
{
|
public Step Step { get; private set; }
|
public PropertyObject PropertyObject { get; private set; }
|
|
public NumValTestEPO(StepUI stepUI)
|
{
|
StepUI = stepUI;
|
Step = stepUI?.step;
|
PropertyObject = Step?.AsPropertyObject();
|
}
|
|
public string ComparisonType
|
{
|
get => PropertyObject?.GetValString("Comp", 0);
|
set
|
{
|
if (PropertyObject != null)
|
{
|
PropertyObject.SetValString("Comp", 0, value);
|
CustomPropertyChanged(nameof(ComparisonType));
|
}
|
}
|
}
|
|
public double? Low
|
{
|
get => PropertyObject?.GetValNumber("Limits.Low", 0);
|
set
|
{
|
if (PropertyObject != null)
|
{
|
PropertyObject.SetValNumber("Limits.Low", 0, value ?? 0);
|
CustomPropertyChanged(nameof(Low));
|
}
|
}
|
}
|
|
public double? High
|
{
|
get => PropertyObject?.GetValNumber("Limits.High", 0);
|
set
|
{
|
if (PropertyObject != null)
|
{
|
PropertyObject.SetValNumber("Limits.High", 0, value ?? 0);
|
CustomPropertyChanged(nameof(Low));
|
}
|
}
|
}
|
}
|
}
|