From c4a3f8db90530a727ffab77c3bb5bb7d782792bf Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 25 八月 2025 15:50:27 +0800
Subject: [PATCH] 上传代码;
---
Plugin.SeqEditor/Entity/SeqUI.cs | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Plugin.SeqEditor/Entity/SeqUI.cs b/Plugin.SeqEditor/Entity/SeqUI.cs
index c008960..c6c2430 100644
--- a/Plugin.SeqEditor/Entity/SeqUI.cs
+++ b/Plugin.SeqEditor/Entity/SeqUI.cs
@@ -1,10 +1,19 @@
锘縰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)
{
@@ -23,5 +32,13 @@
}
}
}
+
+ [ObservableProperty]
+ private bool isChanged;
+
+ public void OnStepSettingChanged(object sender, string propertyName)
+ {
+ IsChanged = true;
+ }
}
}
--
Gitblit v1.9.1