| | |
| | | { |
| | | 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); |
| | |
| | | Y = Application.GetRealHeight(401), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | }; |
| | | bodyView.AddChidren(btnConfirm); |
| | | if(confirmText != "") |
| | | { |
| | | btnConfirm.Text = confirmText; |
| | | } |
| | | |
| | | btnConfirm.MouseUpEventHandler = (sender, e) => { |
| | | this.Close(); |
| | | rebackAction?.Invoke(); |
| | | }; |
| | | |
| | | } |
| | |
| | | X = btnCheckIcon.Right, |
| | | Y = Application.GetRealHeight(350), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(32), |
| | | Height = Application.GetRealWidth(32), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = msg, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |