From 4cac1b533e133fdc8b3def90a0f998820f51907a Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期三, 26 三月 2025 17:57:59 +0800
Subject: [PATCH] 优化UI,新增日志自动删除;

---
 HMI.IOMonitor/IOMonitor.xaml.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/HMI.IOMonitor/IOMonitor.xaml.cs b/HMI.IOMonitor/IOMonitor.xaml.cs
index a128ad0..fd059d9 100644
--- a/HMI.IOMonitor/IOMonitor.xaml.cs
+++ b/HMI.IOMonitor/IOMonitor.xaml.cs
@@ -416,7 +416,7 @@
             this.DataFilePath = Path.Combine(BaseFolder, "Data.xml");
         }
 
-        public override object Active()
+        public override void Active()
         {
             try
             {
@@ -454,7 +454,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