wxr
2023-04-11 93a578f5182792b4dd981e874e2746e8b3e34e2e
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/iot_BindTipPage.cs
@@ -59,13 +59,9 @@
                TextSize = 21,
                TextAlignment = TextAlignment.CenterLeft,
                IsBold = true,
                Text = "关于账号绑定的声明"
                TextID = StringId.AboutBindAcountTip,
            };
            contentView.AddChidren(btnTipTitle);
            if (Language.CurrentLanguage != "Chinese")
            {
                btnTipTitle.Text = "Statement on account binding";
            }
            var btnTipText = new Button()
            {
@@ -142,15 +138,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 +168,7 @@
            }
            else
            {
                btnComfirm.Text = "解除授权";
                if (Language.CurrentLanguage != "Chinese")
                {
                    btnComfirm.Text = "Cancel authorization";
                }
                btnComfirm.TextID = StringId.Cancel;
                btnComfirm.MouseUpEventHandler = (sender, e) =>
                {
                    Dialog dialog = new Dialog()
@@ -210,14 +197,10 @@
                        TextColor = CSS_Color.FirstLevelTitleColor,
                        TextSize = CSS_FontSize.SubheadingFontSize,
                        Padding = new Padding(0,Application.GetRealWidth(16),0,Application.GetRealWidth(16)),
                        Text = "撤销授权后,该品牌关联在On Pro中的设备将全部被解绑,相关使用信息合设备值也将失效",
                        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 +219,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 +259,7 @@
                                }
                                else
                                {
                                    if (Language.CurrentLanguage != "Chinese")
                                    {
                                        new Alert("", "Operation failed", "").Show();
                                    }
                                    else
                                    {
                                        new Alert("", "操作失败", "").Show();
                                    }
                                    new Alert("", Language.StringByID(StringId.OperationFailed), "").Show();
                                }
                            }
                            catch { }