| | |
| | | { |
| | | Dialog dialog; |
| | | FrameLayout bodyView; |
| | | |
| | | /// <summary> |
| | | /// 回掉函数 |
| | | /// </summary> |
| | | public Action rebackAction = null; |
| | | |
| | | public OperationResultDisPalyPage() |
| | | { |
| | | dialog = this; |
| | |
| | | /// <param name="title">页面标题</param> |
| | | /// <param name="tipTitle">提示标题</param> |
| | | /// <param name="tipMsg">提示信息</param> |
| | | public void LoadPage(bool result,string title,string tipTitle,string tipMsg) |
| | | /// <param name="confirmText">按钮文本</param> |
| | | public void LoadPage(bool result,string title,string tipTitle,string tipMsg,string confirmText = "") |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | dialog.AddChidren(bodyView); |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | }; |
| | | bodyView.AddChidren(btnConfirm); |
| | | if(confirmText != "") |
| | | { |
| | | btnConfirm.Text = confirmText; |
| | | } |
| | | |
| | | btnConfirm.MouseUpEventHandler = (sender, e) => { |
| | | this.Close(); |
| | | rebackAction?.Invoke(); |
| | | }; |
| | | |
| | | } |