From 7bf89fd93bc487e8445d6d85bb527251b7371a04 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 12 五月 2025 13:14:11 +0800
Subject: [PATCH] 优化项目;

---
 Plugin.ServoManage/ServoManage.xaml.cs |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Plugin.ServoManage/ServoManage.xaml.cs b/Plugin.ServoManage/ServoManage.xaml.cs
index 39c557b..10e593d 100644
--- a/Plugin.ServoManage/ServoManage.xaml.cs
+++ b/Plugin.ServoManage/ServoManage.xaml.cs
@@ -1,10 +1,12 @@
-锘縰sing HMI.Base;
+锘縰sing ConnectionUtil;
+using HMI.Base;
 using HMI.Core.Entity;
 using HMI.Core.Manager;
 using HMI.Core.Setting;
 using HMI.Core.Util;
 using HMI.UI;
 using HMI.UI.Util;
+using OPCConnection;
 using Plugin.ServoManage.Entity;
 using System;
 using System.Collections.Generic;
@@ -91,7 +93,7 @@
         /// <summary>
         /// 瀹炰緥鍖栨湇鍔″櫒鎺ュ彛鍑芥暟
         /// </summary>
-        private OpcInterface.OpcInterface lTSCADAApi = new OpcInterface.OpcInterface();
+        private SCADAApi lTSCADAApi = new OPCClient();
         private bool isActived = false;
         private System.Timers.Timer motorMonitorTimer;
 
@@ -402,7 +404,8 @@
                     MsgBoxHelper2.Error(ex.Message);
                 }
             }
-            else {
+            else
+            {
                 motorMonitorTimer.Enabled = true;
             }
         }

--
Gitblit v1.9.1