From 2e889843b4c171f2d6ad8e0d53084040703d11f6 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 13:18:21 +0800
Subject: [PATCH] docs: CAN 总线级应答器 + 硬件调试页多标签多会话 设计规格

---
 HMI.Base/PluginControl.cs |   37 +++++++++++++++++++++++++++++--------
 1 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/HMI.Base/PluginControl.cs b/HMI.Base/PluginControl.cs
index b8b307b..88c7fcf 100644
--- a/HMI.Base/PluginControl.cs
+++ b/HMI.Base/PluginControl.cs
@@ -1,4 +1,5 @@
-锘縰sing System.ComponentModel;
+锘縰sing System;
+using System.ComponentModel;
 using System.Runtime.CompilerServices;
 using System.Windows.Controls;
 using HMI.Core.Api;
@@ -30,19 +31,19 @@
         protected ILog log;
         protected string BaseFolder;
 
-        public virtual object Active()
+        public virtual void Active()
         {
-            return null;
+
         }
 
-        public virtual object DeActive()
+        public virtual void DeActive()
         {
-            return null;
+
         }
 
-        public virtual object Init()
+        public virtual void Init()
         {
-            return null;
+
         }
 
         public virtual void OnTabChange(object sender, object args)
@@ -62,7 +63,27 @@
 
         public virtual void InitFinish()
         {
-            
+
+        }
+
+        public virtual void OnClose(object sender, CancelEventArgs e)
+        {
+
+        }
+
+        public virtual void DoClose(object sender, EventArgs e)
+        {
+
+        }
+
+        public virtual bool CanActive()
+        {
+            return true;
+        }
+
+        public virtual bool CanDeActive()
+        {
+            return true;
         }
     }
 }

--
Gitblit v1.9.1