alielie
2025-11-25 006c98e5650b530e5220f279c1e803fefe69d40d
Plugin.SeqEditor/Entity/SeqUI.cs
@@ -1,11 +1,21 @@
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)
        {
            this.sequence = sequence;
@@ -23,5 +33,13 @@
                }
            }
        }
        [ObservableProperty]
        private bool isChanged;
        public void OnStepSettingChanged(object sender, string propertyName)
        {
            IsChanged = true;
        }
    }
}