From d1b72117058f1131046b6aa3add8e3ccfae033d8 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 10:36:07 +0800
Subject: [PATCH] docs: CAN 模拟器独立 TCP 服务进程设计规格(统一 CanDeviceDriver + 双工推送协议)

---
 Plugin.SeqEditor/Entity/SeqUI.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/Plugin.SeqEditor/Entity/SeqUI.cs b/Plugin.SeqEditor/Entity/SeqUI.cs
index c008960..08582ac 100644
--- a/Plugin.SeqEditor/Entity/SeqUI.cs
+++ b/Plugin.SeqEditor/Entity/SeqUI.cs
@@ -1,11 +1,21 @@
 锘縰sing 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;
+        }
     }
 }

--
Gitblit v1.9.1