| | |
| | | /// </summary> |
| | | public void LoadPage() |
| | | { |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.About)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.About)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | this.BackgroundColor = CSS_Color.MainBackgroundColor; |
| | | |
| | | Button btnOnIcon = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealWidth(106), |
| | | Y = Application.GetRealWidth(106+10), |
| | | Width = Application.GetRealWidth(58), |
| | | Height = Application.GetRealWidth(58), |
| | | UnSelectedImagePath = "OnIcon.png", |
| | |
| | | Text = Language.StringByID(StringId.VersionNumber) + " " + MainPage.VersionString, |
| | | }; |
| | | bodyView.AddChidren(btnOnVersion); |
| | | if(HttpUtil.GlobalRequestHttpsHost == "https://test-gz.hdlcontrol.com") |
| | | { |
| | | btnOnVersion.Text += "(Test Server)"; |
| | | } |
| | | |
| | | |
| | | var lineView = new FrameLayout() |
| | |
| | | /// </summary> |
| | | void OpenUrl() |
| | | { |
| | | if (!string.IsNullOrEmpty(newAppVersion)&& newAppVersion.Contains("http")) |
| | | if (!string.IsNullOrEmpty(newAppVersion)&& newAppVersionUrl.Contains("http")) |
| | | { |
| | | HDLUtils.OpenUrl(newAppVersionUrl); |
| | | } |
| | | else |
| | | { |
| | | Utlis.ShowTip(Language.StringByID(StringId.IsLatestVersion)); |
| | | } |
| | | //else |
| | | //{ |
| | | // Utlis.ShowTip(Language.StringByID(StringId.IsLatestVersion)); |
| | | //} |
| | | } |
| | | |
| | | /// <summary> |