From 6bcafc823e836ecd5790f87178a906333699f868 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 10 四月 2025 10:46:47 +0800
Subject: [PATCH] 优化插件结构;
---
HMI.IOMonitor/IOMonitor.xaml.cs | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/HMI.IOMonitor/IOMonitor.xaml.cs b/HMI.IOMonitor/IOMonitor.xaml.cs
index a128ad0..5778b04 100644
--- a/HMI.IOMonitor/IOMonitor.xaml.cs
+++ b/HMI.IOMonitor/IOMonitor.xaml.cs
@@ -1,4 +1,5 @@
-锘縰sing HMI.Base;
+锘縰sing ConnectionUtil;
+using HMI.Base;
using HMI.Core.Setting;
using HMI.Core.Util;
using HMI.IOMonitor.Entity;
@@ -7,11 +8,13 @@
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
+using OPCConnection;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
+using System.Net.Sockets;
using System.Timers;
using System.Windows;
using System.Windows.Controls;
@@ -33,7 +36,7 @@
private string DQTag = string.Empty;
private SystemSetting systemSetting;
private Timer MonitorTimer;
- private OpcInterface.OpcInterface lTSCADAApi = new OpcInterface.OpcInterface();
+ private SCADAApi lTSCADAApi = new OPCClient();
/// <summary>
@@ -416,7 +419,7 @@
this.DataFilePath = Path.Combine(BaseFolder, "Data.xml");
}
- public override object Active()
+ public override void Active()
{
try
{
@@ -454,7 +457,6 @@
log.Error("Active Execute Failed.", ex);
MsgBoxHelper.ErrorMessage(this, $"{this.lang("DIO.ActivateFailed")}: {ex.Message}");
}
- return null;
}
private void CollectionViewSource_Filter(object sender, System.Windows.Data.FilterEventArgs e)
--
Gitblit v1.9.1