From ee999c7f553013cc742145632bf88091c524d050 Mon Sep 17 00:00:00 2001 From: Elivo Date: Wed, 20 Aug 2025 11:15:11 +0800 Subject: [PATCH] =?UTF-8?q?Tray.SetMenu=20=E6=94=AF=E6=8C=81=20params=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apewer.Windows/WinForm/Tray.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Apewer.Windows/WinForm/Tray.cs b/Apewer.Windows/WinForm/Tray.cs index 5580d84..e0101c7 100644 --- a/Apewer.Windows/WinForm/Tray.cs +++ b/Apewer.Windows/WinForm/Tray.cs @@ -140,7 +140,7 @@ namespace Apewer.WinForm } /// 设置右键菜单。 - public void SetMenu(MenuItem[] menu) + public void SetMenu(params MenuItem[] menu) { ClearMenu(); if (menu == null) return; @@ -188,7 +188,8 @@ namespace Apewer.WinForm Form _form = null; Action _action = null; - /// + /// 创建新的托盘实例。 + /// 创建成功后,执行的回调。 /// public Tray(Action action) {