duheng
2025-02-17 fea4a016cdc369be9001fb6dd15295eb68e2381f
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);
        }
    }
}