From 373376967321bd172ed9dce8835a5b7ce138470b Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期四, 04 七月 2024 11:08:48 +0800
Subject: [PATCH] 证书更新
---
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs | 50 ++++++++++++--------------------------------------
1 files changed, 12 insertions(+), 38 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 dc0bd62..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);
@@ -257,6 +238,7 @@
var http = new HttpServerRequest();
var waitPage = new Loading();
this.AddChidren(waitPage);
+ dialog.Close();
waitPage.Start("");
new System.Threading.Thread(() =>
{
@@ -279,15 +261,7 @@
}
else
{
- dialog.Close();
- 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