wxr
2021-07-01 43b0d5870d528f23ecd6aeceb6cfd4325188b46f
HDL_ON/UI/UI0-Public/OperationSuccessPromptPage.cs
@@ -11,6 +11,12 @@
    {
        Dialog dialog;
        FrameLayout bodyView;
        /// <summary>
        /// 回掉函数
        /// </summary>
        public Action rebackAction = null;
        public OperationResultDisPalyPage()
        {
            dialog = this;
@@ -24,7 +30,8 @@
        /// <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);
@@ -68,16 +75,23 @@
                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,
                TextID = StringId.Confirm
                TextID = StringId.Confirm,
                TextSize = CSS_FontSize.SubheadingFontSize,
            };
            bodyView.AddChidren(btnConfirm);
            if(confirmText != "")
            {
                btnConfirm.Text = confirmText;
            }
            btnConfirm.MouseUpEventHandler = (sender, e) => {
                this.Close();
                rebackAction?.Invoke();
            };
        }
@@ -102,7 +116,7 @@
                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,