| | |
| | | using System; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | | using Xamarin.Essentials; |
| | | //using Xamarin.Essentials; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | //服务器信息 |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.ServerInformation)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.ServerInformation)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | ImageView imageView = new ImageView() |
| | | { |
| | | Y = Application.GetMinRealAverage(88), |
| | | Y = Application.GetMinRealAverage(88+10), |
| | | Width = Application.GetMinRealAverage(200), |
| | | Height = Application.GetMinRealAverage(180), |
| | | ImagePath = "PersonalCenter/ServerInfo.png", |
| | |
| | | }; |
| | | bodyView.AddChidren(serverBtn); |
| | | |
| | | var tipBtn = new Button() |
| | | { |
| | | X = Application.GetRealWidth(40), |
| | | Y = serverBtn.Bottom + Application.GetRealHeight(12), |
| | | Width = Application.GetRealWidth(295), |
| | | Height = Application.GetRealHeight(80), |
| | | TextAlignment = TextAlignment.TopLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | //Text = "*服务器是您当前云端数据存储的所在区域,无需必要,我们不建议发生迁移", |
| | | TextID = StringId.CurrentAccountServerOwnershipTip, |
| | | IsMoreLines = true |
| | | //var tipBtn = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(40), |
| | | // Y = serverBtn.Bottom + Application.GetRealHeight(12), |
| | | // Width = Application.GetRealWidth(295), |
| | | // Height = Application.GetRealHeight(80), |
| | | // TextAlignment = TextAlignment.TopLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // //Text = "*服务器是您当前云端数据存储的所在区域,无需必要,我们不建议发生迁移", |
| | | // TextID = StringId.CurrentAccountServerOwnershipTip, |
| | | // IsMoreLines = true |
| | | |
| | | }; |
| | | bodyView.AddChidren(tipBtn); |
| | | //}; |
| | | //bodyView.AddChidren(tipBtn); |
| | | |
| | | var callBtn = new TextButton() |
| | | { |
| | | X = Application.GetRealWidth(40), |
| | | Y = Application.GetRealHeight(606), |
| | | Width = Application.GetRealWidth(168), |
| | | Height = Application.GetRealHeight(22), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | //Text = "*若需要迁移服务器,请拨打", |
| | | TextID = StringId.ToMigrateTheServerPleaseCall, |
| | | //var callBtn = new TextButton() |
| | | //{ |
| | | // X = Application.GetRealWidth(40), |
| | | // Y = Application.GetRealHeight(606), |
| | | // Width = Application.GetRealWidth(168), |
| | | // Height = Application.GetRealHeight(22), |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.TextualColor, |
| | | // TextSize = CSS_FontSize.TextFontSize, |
| | | // //Text = "*若需要迁移服务器,请拨打", |
| | | // TextID = StringId.ToMigrateTheServerPleaseCall, |
| | | |
| | | }; |
| | | bodyView.AddChidren(callBtn); |
| | | callBtn.Width = callBtn.GetTextWidth() + Application.GetRealWidth(2); |
| | | //}; |
| | | //bodyView.AddChidren(callBtn); |
| | | //callBtn.Width = callBtn.GetTextWidth() + Application.GetRealWidth(2); |
| | | |
| | | var phoneBtn = new TextButton() |
| | | { |
| | | X = callBtn.Right + Application.GetRealHeight(2), |
| | | Y = Application.GetRealHeight(606), |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetRealHeight(22), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | Text = "13828070886", |
| | | IsBold = true |
| | | }; |
| | | bodyView.AddChidren(phoneBtn); |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | phoneBtn.Y = Application.GetRealHeight(566); |
| | | phoneBtn.Y = callBtn.Bottom; |
| | | phoneBtn.X = callBtn.X; |
| | | } |
| | | //var phoneBtn = new TextButton() |
| | | //{ |
| | | // X = callBtn.Right + Application.GetRealHeight(2), |
| | | // Y = Application.GetRealHeight(606), |
| | | // Width = Application.GetRealWidth(200), |
| | | // Height = Application.GetRealHeight(22), |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.MainColor, |
| | | // TextSize = CSS_FontSize.SubheadingFontSize, |
| | | // Text = "400-855-8535", |
| | | // IsBold = true |
| | | //}; |
| | | //bodyView.AddChidren(phoneBtn); |
| | | //if(Language.CurrentLanguage != "Chinese") |
| | | //{ |
| | | // phoneBtn.Y = Application.GetRealHeight(566); |
| | | // phoneBtn.Y = callBtn.Bottom; |
| | | // phoneBtn.X = callBtn.X; |
| | | //} |
| | | |
| | | phoneBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | }; |
| | | //phoneBtn.MouseUpEventHandler += (sender, e) => |
| | | //{ |
| | | // PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); |
| | | //}; |
| | | |
| | | serverBtn.Text = Language.StringByID(StringId.CurrentAccountServerOwnership) + OnAppConfig.Instance.GlobalRegion.regionName.Replace("HDL", "SANTAN"); |
| | | serverBtn.Text = Language.StringByID(StringId.CurrentAccountServerOwnership) + OnAppConfig.Instance.GlobalRegion.regionName.Replace("HDL","Santan"); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |