using CommunityToolkit.Mvvm.ComponentModel; using NationalInstruments.TestStand.Interop.API; using Plugin.SeqEditor.Util; using System.Collections.ObjectModel; namespace Plugin.SeqEditor.Entity { public partial class VarUI : ObservableObject { private string prefix; private PropertyObject propertyObject; public VarUI(PropertyObject po) { this.propertyObject = po; } [ObservableProperty] private ObservableCollection subProperties = new ObservableCollection(); public string Name { get => propertyObject?.Name; set { if (propertyObject != null) { propertyObject.Name = value; OnPropertyChanged(Name); } } } public string Value { get => propertyObject?.GetValueString(); set { propertyObject?.SetValueString(value); } } public PropertyValueTypes? Type { get => propertyObject?.Type?.ValueType; } public PropertyValueTypes? ElementType { get => propertyObject?.Type?.ElementType?.ValueType; } public string DisplayString { get => propertyObject?.Type.DisplayString; } } }