From a3ba25607612818c28d421bfa8eb2f92339d71ac Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 13 三月 2025 20:30:48 +0800
Subject: [PATCH] 优化项目;
---
Plugin.TestResult/DataTable.xaml.cs | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/Plugin.TestResult/DataTable.xaml.cs b/Plugin.TestResult/DataTable.xaml.cs
index d0bb6a6..884fc6c 100644
--- a/Plugin.TestResult/DataTable.xaml.cs
+++ b/Plugin.TestResult/DataTable.xaml.cs
@@ -1,11 +1,9 @@
-锘縰sing Plugin.TestResult_WPF.Model;
+锘縰sing HMI.Core.Util;
+using Plugin.TestResult_WPF.Model;
using SuperSocket.SocketBase.Protocol;
using System;
using System.ComponentModel;
-using System.Net;
-using System.Net.Sockets;
using System.Runtime.CompilerServices;
-using System.Threading;
using System.Windows;
using System.Windows.Controls;
@@ -55,7 +53,7 @@
set { RaiseAndSetIfchanged(ref tcpServerStatus, value); }
}
- private string tcpServerInfo = "鏈惎鍔�";
+ private string tcpServerInfo = LangUtil.Get("App.NotStarted");
public string TcpServerInfo
{
@@ -208,20 +206,20 @@
tcpServer.NewRequestReceived += TcpServer_NewRequestReceived;
if (!tcpServer.Setup(config.PortStart + index))
{
- ChangeTcpServerStatus("ERROR", "鏈嶅姟璁剧疆寮傚父");
+ ChangeTcpServerStatus("ERROR", this.lang("Tr.TcpServer.SettingFailed"));
return;
}
if (!tcpServer.Start())
{
- ChangeTcpServerStatus("ERROR", "鏈嶅姟鍚姩寮傚父");
+ ChangeTcpServerStatus("ERROR", this.lang("Tr.TcpServer.StartFailed"));
return;
}
- ChangeTcpServerStatus("RUNNING", "鏈嶅姟杩愯涓�");
+ ChangeTcpServerStatus("RUNNING", this.lang("Tr.TcpServer.Running"));
}
}
catch (Exception ex)
{
- ChangeTcpServerStatus("ERROR", $"鏈嶅姟寮傚父锛歿ex.Message}");
+ ChangeTcpServerStatus("ERROR", $"{ex.Message}");
tcpServer?.Stop();
tcpServer = null;
}
--
Gitblit v1.9.1