From dedcf4174c8540ee3a912daad2ff13e014e495b1 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 28 三月 2025 16:28:30 +0800
Subject: [PATCH] 优化UI组件;

---
 Plugin.TestResult/InfoTable.xaml.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Plugin.TestResult/InfoTable.xaml.cs b/Plugin.TestResult/InfoTable.xaml.cs
index 4bff3b1..b2a7f26 100644
--- a/Plugin.TestResult/InfoTable.xaml.cs
+++ b/Plugin.TestResult/InfoTable.xaml.cs
@@ -1,4 +1,5 @@
-锘縰sing Plugin.TestResult_WPF.Constant;
+锘縰sing HMI.Util;
+using Plugin.TestResult_WPF.Constant;
 using System;
 using System.ComponentModel;
 using System.Runtime.CompilerServices;
@@ -66,7 +67,6 @@
             set
             {
                 RaiseAndSetIfchanged(ref _okCount, value);
-                RefreshCount();
             }
         }
 
@@ -78,7 +78,6 @@
             set
             {
                 RaiseAndSetIfchanged(ref _ngCount, value);
-                RefreshCount();
             }
         }
 
@@ -137,10 +136,11 @@
             set => RaiseAndSetIfchanged(ref _endTimeStr, value);
         }
 
-
-        private void RefreshCount()
+        public void UpdateNumber(int ok, int ng)
         {
-            this.allCount = this.okCount + this.ngCount;
+            this._okCount = ok;
+            this._ngCount = ng;
+            this._allCount = this._okCount + this._ngCount;
             RaisePropertyChanged("countStr");
         }
 

--
Gitblit v1.9.1