| | |
| | | /// <param name="msg">信息</param>
|
| | | /// <param name="action">单击确认后执行的回调函数</param>
|
| | | /// <param name="buttonText">按钮的文本</param>
|
| | | /// <param name="buttonCacel">取消按钮的文本</param>
|
| | | /// <param name="i_waitTime">等待时间,单位为秒,设置确认按钮在多长时间后才能够点击</param>
|
| | | public void ShowMassage(ShowMsgType msgType, string msg, Action action = null, string buttonText = null, int i_waitTime = -1)
|
| | | public void ShowMassage(ShowMsgType msgType, string msg, Action action = null, string buttonText = null, string buttonCacel = null, int i_waitTime = -1)
|
| | | {
|
| | | //空对象时,不显示
|
| | | if (string.IsNullOrEmpty(msg))
|
| | |
| | | }
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | var alert = new ShowMsgControl(msgType, msg, buttonText, null, i_waitTime);
|
| | | var alert = new ShowMsgControl(msgType, msg, buttonText, buttonCacel, i_waitTime);
|
| | | if (action != null)
|
| | | {
|
| | | alert.ConfirmClickEvent += () =>
|