| | |
| | | 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() |
| | | { |
| | |
| | | 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) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | btnComfirm.Text = "解除授权"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | btnComfirm.Text = "Cancel authorization"; |
| | | } |
| | | btnComfirm.TextID = StringId.Cancel; |
| | | btnComfirm.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | Dialog dialog = new Dialog() |
| | |
| | | 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() |
| | | { |
| | |
| | | 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); |
| | |
| | | } |
| | | else |
| | | { |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | new Alert("", "Operation failed", "").Show(); |
| | | } |
| | | else |
| | | { |
| | | new Alert("", "操作失败", "").Show(); |
| | | } |
| | | new Alert("", Language.StringByID(StringId.OperationFailed), "").Show(); |
| | | } |
| | | } |
| | | catch { } |