From 2e889843b4c171f2d6ad8e0d53084040703d11f6 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 13:18:21 +0800
Subject: [PATCH] docs: CAN 总线级应答器 + 硬件调试页多标签多会话 设计规格

---
 Plugin.TsExecution/ScreenTouch.xaml.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Plugin.TsExecution/ScreenTouch.xaml.cs b/Plugin.TsExecution/ScreenTouch.xaml.cs
index 431f740..4cf1f19 100644
--- a/Plugin.TsExecution/ScreenTouch.xaml.cs
+++ b/Plugin.TsExecution/ScreenTouch.xaml.cs
@@ -1,4 +1,5 @@
 锘縰sing HMI.Base;
+using HMI.UI.DpUtil;
 using System;
 using System.Collections.ObjectModel;
 using System.Globalization;
@@ -108,6 +109,7 @@
                 children[i] = border;
                 uniform.Children.Add(border);
             }
+            UniformGridHelper.RefreshGridInnerBorder(uniform);
         }
 
         public void Refresh(int rows, int columns)
@@ -140,6 +142,25 @@
             Values = temp;
         }
 
+        public void DrawNewPoints(int[][] points)
+        {
+            var temp = Values == null ?
+                new ObservableCollection<bool>(new bool[rows * columns]) :
+                new ObservableCollection<bool>(Values);
+            for (int i = 0; i < points.Length; i++)
+            {
+                int[] point = points[i];
+                if (point == null)
+                {
+                    continue;
+                }
+                int index = point[1] * columns + point[0];
+                //children[point[0]][point[1]].Background = Brushes.Green;
+                temp[index] = true;
+            }
+            Values = temp;
+        }
+
         private void PaintPoints()
         {
             for (int i = 0; i < Values.Count; i++)

--
Gitblit v1.9.1