From a2572dfd5f01df2f8c6980e53ff01d1100fbb5c8 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 05 六月 2023 09:35:26 +0800
Subject: [PATCH] 安卓键盘弹出事件

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs |  140 ++++++++++++++++++++++++----------------------
 1 files changed, 74 insertions(+), 66 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
index f13369a..dc72414 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePage.cs
@@ -395,6 +395,80 @@
 
                     LoadEvent_SkipAdminMigrationConfirmPage();
                     LoadEvent_SkipTransferConfirmPage();
+
+
+
+                    var btnRollBack = new Button()
+                    {
+                        Y = Application.GetRealHeight(623),
+                        Height = Application.GetRealHeight(50),
+                        TextAlignment = TextAlignment.Center,
+                        TextSize = CSS_FontSize.SubheadingFontSize,
+                        TextColor = CSS_Color.AuxiliaryColor2,
+                        TextID = StringId.RollBack,
+                        BackgroundColor = CSS_Color.MainBackgroundColor,
+                    };
+                    bodyView.AddChidren(btnRollBack);
+
+                    if (MainPage.Increase)
+                    {
+                        btnRollBack.Y = Application.GetRealHeight(613);
+                        btnRollBack.Height = Application.GetRealHeight(50);
+                        bodyView.AddChidren(new Button() { Y = Application.GetRealHeight(663), Height = Application.GetRealHeight(20), BackgroundColor = CSS_Color.MainBackgroundColor });
+                    }
+                    btnRollBack.MouseUpEventHandler += (sender, e) =>
+                    {
+                        Action okAction = () =>
+                        {
+                            var waitPage = new Loading();
+                            this.AddChidren(waitPage);
+                            waitPage.Start("");
+                            new System.Threading.Thread(() => {
+                                try
+                                {
+                                    var pack = Common.ApiUtlis.Ins.HttpRequest.RollBack();
+                                    Application.RunOnMainThread(() =>
+                                    {
+                                        if (pack != null)
+                                        {
+                                            if (pack.Code == StateCode.SUCCESS)
+                                            {
+                                                new PublicAssmebly().TipMsg(StringId.Tip, StringId.SuccessfullyUnboundTheResidence, () =>
+                                                {
+                                                    Common.ApiUtlis.Ins.HttpRequest.GetHomePager();
+                                                });
+                                            }
+                                            else
+                                            {
+                                                IMessageCommon.Current.ShowErrorInfoAlter(pack.Code);
+                                            }
+                                        }
+                                    });
+                                }
+                                catch (Exception ex)
+                                {
+                                    MainPage.Log($"浣忓畢鍥炴粴寮傚父锛歿ex.Message}");
+                                }
+                                finally
+                                {
+                                    Application.RunOnMainThread(() =>
+                                    {
+                                        try
+                                        {
+                                            waitPage.Hide();
+                                            waitPage.RemoveFromParent();
+                                            waitPage = null;
+                                        }
+                                        catch { }
+                                    });
+                                }
+                            })
+                            { IsBackground = true }.Start();
+                        };
+                        new ConfirmDialog().ShowDialog(StringId.Tip, StringId.RollBackTipMsg, okAction);
+                    };
+
+
                 }
                 #region 璋冭瘯鏉冮檺
 
@@ -565,72 +639,6 @@
                         break;
                     case "ACCEPTANCE"://楠屾敹
                         btnHouseStatusTipTitle.Text += " : " + Language.StringByID(StringId.ACCEPTANCE);
-
-                       var btnRollBack = new Button()
-                        {
-                            Y = Application.GetRealHeight(623),
-                            Height = Application.GetRealHeight(50),
-                            TextAlignment = TextAlignment.Center,
-                            TextSize = CSS_FontSize.SubheadingFontSize,
-                            TextColor = CSS_Color.AuxiliaryColor2,
-                            TextID = StringId.RollBack,
-                            BackgroundColor = CSS_Color.MainBackgroundColor,
-                        };
-                        bodyView.AddChidren(btnRollBack);
-
-                        if (MainPage.Increase)
-                        {
-                            btnRollBack.Y = Application.GetRealHeight(613);
-                            btnRollBack.Height = Application.GetRealHeight(50);
-                            bodyView.AddChidren(new Button() { Y = Application.GetRealHeight(663), Height = Application.GetRealHeight(20), BackgroundColor = CSS_Color.MainBackgroundColor });
-                        }
-                        btnRollBack.MouseUpEventHandler += (sender, e) =>
-                        {
-                            Action okAction = () =>
-                            {
-                                var waitPage = new Loading();
-                                this.AddChidren(waitPage);
-                                waitPage.Start("");
-                                new System.Threading.Thread(() => {
-                                    try
-                                    {
-                                        var pack = Common.ApiUtlis.Ins.HttpRequest.RollBack();
-                                        Application.RunOnMainThread(() =>
-                                        {
-                                            if (pack != null)
-                                            {
-                                                if (pack.Code == StateCode.SUCCESS)
-                                                {
-                                                    Common.ApiUtlis.Ins.HttpRequest.GetHomePager();
-                                                }
-                                                else
-                                                {
-                                                    IMessageCommon.Current.ShowErrorInfoAlter(pack.Code);
-                                                }
-                                            }
-                                        });
-                                    }
-                                    catch (Exception ex)
-                                    {
-                                        MainPage.Log($"浣忓畢鍥炴粴寮傚父锛歿ex.Message}");
-                                    }
-                                    finally
-                                    {
-                                        Application.RunOnMainThread(() =>
-                                        {
-                                            try
-                                            {
-                                                waitPage.Hide();
-                                                waitPage.RemoveFromParent();
-                                                waitPage = null;
-                                            }
-                                            catch { }
-                                        });
-                                    }
-                                }) { IsBackground = true }.Start();
-                            };
-                            new ConfirmDialog().ShowDialog(StringId.Tip, StringId.RollBackTipMsg, okAction);
-                        };
 
                         break;
                     case "To_Be_Accepted"://寰呴獙鏀�

--
Gitblit v1.8.0