WinFrmUI/Yw.WinFrmUI.Core/05-alert/AlertToolHelper.cs
@@ -19,7 +19,7 @@ _alert = new AlertControl(); _alert.AutoFormDelay = 3000; _alert.AutoHeight = false; //_alert.FormMaxCount = 1; _alert.FormMaxCount = 1; } } } @@ -41,6 +41,18 @@ Alert.Show(owner, info); } /// <summary> /// 显示右下角弹窗 /// </summary> /// <param name="owner"></param> /// <param name="caption"></param> /// <param name="text"></param> public static void ShowAlertInfo(this Control owner, string caption, string text) { var form = owner.FindForm(); form.ShowAlertInfo(caption, text); } } }