mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2026-01-14 06:04:00 +08:00
tip可能为空
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Windows.Forms;
|
||||
using BulePointLilac.Methods;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace BulePointLilac.Controls
|
||||
{
|
||||
@@ -6,6 +7,7 @@ namespace BulePointLilac.Controls
|
||||
{
|
||||
public static void SetToolTip(Control ctr, string tip)
|
||||
{
|
||||
if(tip.IsNullOrWhiteSpace()) return;
|
||||
ToolTip toolTip = new ToolTip();
|
||||
toolTip.SetToolTip(ctr, tip);
|
||||
ctr.Disposed += (sender, e) => toolTip.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user