From 99df058a665ea04065a23e729ec79a2f23f79881 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期二, 20 五月 2025 16:59:43 +0800
Subject: [PATCH] 优化
---
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