From 559890c482f5973f06aafdfec9550fee5ba3c7f2 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 17:02:15 +0800
Subject: [PATCH] feat: CAN 模拟器 TCP 化 + 多设备并发调试 + 后台生命周期管理
---
Plugin.CurrentSensorControl/BurnInSettingModal.xaml.cs | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/Plugin.CurrentSensorControl/BurnInSettingModal.xaml.cs b/Plugin.CurrentSensorControl/BurnInSettingModal.xaml.cs
index 7954cf6..576146b 100644
--- a/Plugin.CurrentSensorControl/BurnInSettingModal.xaml.cs
+++ b/Plugin.CurrentSensorControl/BurnInSettingModal.xaml.cs
@@ -1,9 +1,8 @@
-锘縰sing HMI.UI.DpUtil;
-using HMI.UI.Util;
+锘縰sing HMI.UI.Util;
using HMI.Util;
using Microsoft.Win32;
using Panuon.WPF.UI;
-using Plugin.CurrentSensorControl.Entity;
+using PLCHelper.Entity;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Controls;
@@ -126,6 +125,14 @@
}
}
+ private void TryDeleteData(PLCTagData data)
+ {
+ if (MsgBoxHelper2.WarnChoose($"纭畾鍒犻櫎鏁版嵁: {data.Name} 鍚楋紵") == System.Windows.MessageBoxResult.OK)
+ {
+ Datasource.Remove(data);
+ }
+ }
+
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
var btn = sender as Button;
@@ -136,10 +143,12 @@
case "importBtn":
DoImport();
break;
+ case "delBtn":
+ TryDeleteData((PLCTagData)btn.DataContext);
+ break;
default:
break;
}
-
}
}
}
--
Gitblit v1.9.1