From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 17:25:59 +0800
Subject: [PATCH] 2024年07月25日17:24:45

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs |   48 +++++++++++-------------------------------------
 1 files changed, 11 insertions(+), 37 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
index 0a77c44..9fa0b37 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
@@ -27,15 +27,17 @@
         public void LoadPage(IntegratedBrand_Iot brand_Iot)
         {
 
-            new TopViewDiv(bodyView, brand_Iot.brandName).LoadTopView(CSS_Color.MainBackgroundColor);
+            var topView = new TopViewDiv(bodyView, brand_Iot.brandName);
+            topView.maginY = 10;
+            topView.LoadTopView(CSS_Color.MainBackgroundColor);
 
             bodyView.BackgroundColor = CSS_Color.MainBackgroundColor;
 
             var contentView = new VerticalScrolViewLayout()
             {
-                Y = Application.GetRealHeight(64),
+                Y = Application.GetRealHeight(64+10),
                 BackgroundColor = CSS_Color.BackgroundColor,
-                Height = Application.GetRealHeight(667 - 124)
+                Height = Application.GetRealHeight(667 - 124 - 10)
             };
             bodyView.AddChidren(contentView);
 
@@ -59,13 +61,9 @@
                 TextSize = 21,
                 TextAlignment = TextAlignment.CenterLeft,
                 IsBold = true,
-                Text = "鍏充簬璐﹀彿缁戝畾鐨勫0鏄�"
+                TextID = StringId.AboutBindAcountTip,
             };
             contentView.AddChidren(btnTipTitle);
-            if (Language.CurrentLanguage != "Chinese")
-            {
-                btnTipTitle.Text = "Statement on account binding";
-            }
 
             var btnTipText = new Button()
             {
@@ -142,15 +140,10 @@
                 BackgroundColor= CSS_Color.MainColor,
                 TextColor = CSS_Color.MainBackgroundColor,
                 TextSize = CSS_FontSize.SubheadingFontSize,
-                Text = "鍚屾剰鎺堟潈",
+                TextID = StringId.Agree,
                 Radius = (uint)Application.GetRealHeight(22)
             };
             optionView.AddChidren(btnComfirm);
-            if (Language.CurrentLanguage != "Chinese")
-            {
-                btnComfirm.Text = "Consent authorization";
-            }
-
 
             if (!brand_Iot.hasAuthorization)
             {
@@ -177,11 +170,7 @@
             }
             else
             {
-                btnComfirm.Text = "瑙i櫎鎺堟潈";
-                if (Language.CurrentLanguage != "Chinese")
-                {
-                    btnComfirm.Text = "Cancel authorization";
-                }
+                btnComfirm.TextID = StringId.Cancel;
                 btnComfirm.MouseUpEventHandler = (sender, e) =>
                 {
                     Dialog dialog = new Dialog()
@@ -210,14 +199,10 @@
                         TextColor = CSS_Color.FirstLevelTitleColor,
                         TextSize = CSS_FontSize.SubheadingFontSize,
                         Padding = new Padding(0,Application.GetRealWidth(16),0,Application.GetRealWidth(16)),
-                        Text = "鎾ら攢鎺堟潈鍚庯紝璇ュ搧鐗屽叧鑱斿湪On Pro涓殑璁惧灏嗗叏閮ㄨ瑙g粦锛岀浉鍏充娇鐢ㄤ俊鎭悎璁惧鍊间篃灏嗗け鏁�",
+                        TextID = StringId.RevokeAuthorizationTip,
                         IsMoreLines = true,
                     };
                     contentView2.AddChidren(btnMsg);
-                    if (Language.CurrentLanguage != "Chinese")
-                    {
-                        btnMsg.Text = "After the authorization is revoked, all the devices associated with the brand in on Pro will be unbound, and the relevant use information and device value will also become invalid";
-                    }
 
                     Button btnLine = new Button()
                     {
@@ -236,12 +221,8 @@
                         TextSize = CSS_FontSize.SubheadingFontSize,
                         SelectedTextColor = CSS_Color.MainBackgroundColor,
                         SelectedBackgroundColor = CSS_Color.MainColor,
-                        Text = "纭畾鎾ゅ洖鎺堟潈",
+                        TextID = StringId.ConfirmRevocationOfAuthorization,
                     };
-                    if (Language.CurrentLanguage != "Chinese")
-                    {
-                        btnConfirm.Text = "Confirm to withdraw authorization";
-                    }
                     btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomLeft);
                     btnConfirm.SetCornerWithSameRadius(Application.GetMinRealAverage(10), HDLUtils.RectCornerBottomRight);
                     contentView2.AddChidren(btnConfirm);
@@ -280,14 +261,7 @@
                                 }
                                 else
                                 {
-                                    if (Language.CurrentLanguage != "Chinese")
-                                    {
-                                        new Alert("", "Operation failed", "").Show();
-                                    }
-                                    else
-                                    {
-                                        new Alert("", "鎿嶄綔澶辫触", "").Show();
-                                    }
+                                    new Alert("", Language.StringByID(StringId.OperationFailed), "").Show();
                                 }
                             }
                             catch { }

--
Gitblit v1.8.0