using NationalInstruments.TestStand.Interop.API;
|
|
namespace Plugin.SeqEditor.Entity.EditablePO
|
{
|
public class WaitEPO : BaseEPO
|
{
|
public Step Step { get; private set; }
|
public PropertyObject PropertyObject { get; private set; }
|
|
public WaitEPO(StepUI stepUI)
|
{
|
StepUI = stepUI;
|
Step = StepUI?.step;
|
PropertyObject = Step?.AsPropertyObject();
|
}
|
|
public string TimeInterval
|
{
|
get
|
{
|
//var str = PropertyObject?.GetValString("TimeExpr", 0);
|
//if (string.IsNullOrEmpty(str)) return null;
|
//double.TryParse(str, out double value);
|
//return value;
|
return PropertyObject?.GetValString("TimeExpr", 0);
|
}
|
set
|
{
|
if (PropertyObject != null)
|
{
|
PropertyObject.SetValString("TimeExpr", 0, value?.ToString());
|
CustomPropertyChanged(nameof(TimeInterval));
|
}
|
}
|
}
|
}
|
}
|