alielie
2025-07-04 0940f31b7eba1cf6b6a8c1fca72d97cf686e79f2
Plugin.SeqEditor/Entity/SeqUI.cs
@@ -1,10 +1,19 @@
using CommunityToolkit.Mvvm.ComponentModel;
using NationalInstruments.TestStand.Interop.API;
using System.Runtime.InteropServices;
namespace Plugin.SeqEditor.Entity
{
    public partial class SeqUI : ObservableObject
    {
        ~SeqUI()
        {
            if (sequence != null)
            {
                Marshal.ReleaseComObject(sequence);
            }
        }
        public Sequence sequence { get; private set; }
        public SeqUI(Sequence sequence)
        {
@@ -23,5 +32,13 @@
                }
            }
        }
        [ObservableProperty]
        private bool isChanged;
        public void OnStepSettingChanged(object sender, string propertyName)
        {
            IsChanged = true;
        }
    }
}