From d1b72117058f1131046b6aa3add8e3ccfae033d8 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 10:36:07 +0800
Subject: [PATCH] docs: CAN 模拟器独立 TCP 服务进程设计规格(统一 CanDeviceDriver + 双工推送协议)
---
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