| | |
| | | using HMI.Base; |
| | | using ConnectionUtil; |
| | | using HMI.Base; |
| | | using HMI.Core.Setting; |
| | | using HMI.Core.Util; |
| | | using HMI.IOMonitor.Entity; |
| | |
| | | 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; |
| | |
| | | private string DQTag = string.Empty; |
| | | private SystemSetting systemSetting; |
| | | private Timer MonitorTimer; |
| | | private OpcInterface.OpcInterface lTSCADAApi = new OpcInterface.OpcInterface(); |
| | | private SCADAApi lTSCADAApi = new OPCClient(); |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | this.DataFilePath = Path.Combine(BaseFolder, "Data.xml"); |
| | | } |
| | | |
| | | public override object Active() |
| | | public override void Active() |
| | | { |
| | | try |
| | | { |
| | |
| | | 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) |