From 5bfb959c47017825c8cf7dc8570c55b04dab694c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 09 六月 2021 16:42:11 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into wxr6 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 108 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs new file mode 100644 index 0000000..f9b1297 --- /dev/null +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferResidenceResultPage.cs @@ -0,0 +1,108 @@ +锘縰sing System; +using Shared; +using HDL_ON.UI.CSS; +using HDL_ON.Stan; +using System.Collections.Generic; + +namespace HDL_ON.UI +{ + /// <summary> + /// 杩囨埛缁撴灉鐣岄潰 + /// </summary> + public class TransferResidenceResultPage : EditorCommonForm + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 缁撴潫浜嬩欢 + /// </summary> + public Action FinishEvent = null; + + #endregion + + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + /// <param name="i_accountInfo">鐢ㄦ埛瀵硅薄淇℃伅</param> + /// <param name="i_success">鏄惁鎴愬姛</param> + public void ShowForm(AccountInfoResult i_accountInfo, bool i_success) + { + this.ScrollLeftEnabled = false; + //杩囨埛 + base.SetTitleText(Language.StringByID(StringId.Transfer)); + + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(i_accountInfo, i_success); + + //绉婚櫎杩斿洖閿� + base.RemoveBackButton(); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄤ俊鎭� + /// </summary> + /// <param name="i_accountInfo">鐢ㄦ埛瀵硅薄淇℃伅</param> + /// <param name="i_success">鏄惁鎴愬姛</param> + private void InitMiddleFrame(AccountInfoResult i_accountInfo, bool i_success) + { + //娓呯┖bodyFrame + this.ClearBodyFrame(); + + //鍥剧墖 + var btnPictrue = new PicViewControl(180, 180); + btnPictrue.Y = Application.GetRealHeight(32); + btnPictrue.Gravity = Gravity.CenterHorizontal; + btnPictrue.UnSelectedImagePath = i_success == true ? "Public/TipIcon_Successfully.png" : "Public/TipIcon_Failed.png"; + bodyFrameLayout.AddChidren(btnPictrue); + + List<NormalViewControl> listContr = null; + if (i_success == true) + { + //鐢ㄦ埛{0}宸茬粡鎴愪负浣忓畢琛岀鐞嗗憳 + string strMsg = Language.StringByID(StringId.CongratulationsXXBecomingNNAdministrator).Replace("{0}", i_accountInfo.MemberName); + listContr = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS_FontSize.SubheadingFontSize, CSS_Color.MainColor, Application.GetRealHeight(24), + btnPictrue.Bottom + Application.GetRealHeight(16)); + //璇ヤ綇瀹呯殑淇℃伅灏嗗湪鎮ㄧ殑璐﹀彿涓垹闄� + var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width - HdlControlResourse.XXLeft * 2, Application.GetRealHeight(18), false); + btnMsg2.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(8); + btnMsg2.TextAlignment = TextAlignment.Center; + btnMsg2.Gravity = Gravity.CenterHorizontal; + btnMsg2.TextSize = CSS_FontSize.PromptFontSize_FirstLevel; + btnMsg2.TextID = StringId.ResidenceDataWillBeDeletedFromYourAccount; + bodyFrameLayout.AddChidren(btnMsg2); + } + else + { + //杩囨埛澶辫触 + string strMsg = Language.StringByID(StringId.TransferFail); + listContr = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS_FontSize.SubheadingFontSize, CSS_Color.AuxiliaryColor2, Application.GetRealHeight(24), + btnPictrue.Bottom + Application.GetRealHeight(16)); + //璇烽噸鏂板皾璇� + var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width - HdlControlResourse.XXLeft * 2, Application.GetRealHeight(18), false); + btnMsg2.Y = listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(8); + btnMsg2.TextAlignment = TextAlignment.Center; + btnMsg2.Gravity = Gravity.CenterHorizontal; + btnMsg2.TextSize = CSS_FontSize.PromptFontSize_FirstLevel; + btnMsg2.TextID = StringId.PleaseTryAgain; + bodyFrameLayout.AddChidren(btnMsg2); + } + + //瀹屾垚 + var btnConfirm = new BottomClickButton(220); + btnConfirm.Y = Application.GetRealHeight(337); + btnConfirm.TextID = i_success == true ? StringId.Complete : StringId.Retry; + bodyFrameLayout.AddChidren(btnConfirm); + btnConfirm.ButtonClickEvent += (sender, e) => + { + this.CloseForm(); + //鍥炶皟鍑芥暟 + this.FinishEvent?.Invoke(); + this.FinishEvent = null; + }; + } + + #endregion + } +} -- Gitblit v1.8.0