From 496458f00e1b537bc4577ecea82ceee78d54224a Mon Sep 17 00:00:00 2001 From: xu Date: Fri, 28 Jun 2024 18:30:13 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=8A=A0=E5=85=A5=E5=B9=BF=E6=92=AD?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E7=8A=B6=E6=80=81=E6=B6=88=E6=81=AF=20?= =?UTF-8?q?=E8=AF=A6=E7=BB=86=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- Plane.Windows.Messages/Message.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Plane.Windows.Messages/Message.cs b/Plane.Windows.Messages/Message.cs index 8db45d3..cf760fd 100644 --- a/Plane.Windows.Messages/Message.cs +++ b/Plane.Windows.Messages/Message.cs @@ -9,6 +9,8 @@ namespace Plane.Windows.Messages { private static Action ShowAction { get; set; } private static Action ConnectAction { get; set; } + private static Action BoardportAction { get; set; } + private static Action StatusAction { get; set; } public static void Configure(Action showAction) @@ -41,5 +43,18 @@ namespace Plane.Windows.Messages { ConnectAction?.Invoke(isConnected); } + + public static void Configureboard(Action boardportAction) + { + BoardportAction = boardportAction; + } + + public static void BoardOpen(bool isOpened) + { + BoardportAction?.Invoke(isOpened); + } + + + } }