using System; using HDL_ON.UI.CSS; using Shared; namespace HDL_ON.UI.UI2.PersonalCenter.AboutOn { public class FirmwareUpdateView : FrameLayout { FirmwareUpdateView bodyView; public FirmwareUpdateView() { bodyView = this; } public void ShowPage() { new TopViewDiv(bodyView, Language.StringByID(StringId.FirmwareUpdate)).LoadTopView(); var contentView = new VerticalScrolViewLayout() { X = Application.GetRealWidth(12), Y = Application.GetRealHeight(90), Height = bodyView.Height, BackgroundColor = CSS_Color.MainBackgroundColor, }; bodyView.AddChidren(contentView); var waitPage = new Loading(); bodyView.AddChidren(waitPage); waitPage.Start(); new System.Threading.Thread(() => { System.Threading.Thread.Sleep(2000); Application.RunOnMainThread(() => { string msg = ""; if (Language.CurrentLanguage == "Chinese") { msg = "当前所有设备已经是最新固件版本。"; } else { msg = "Currently, all devices have the latest firmware version."; } var msgTv = new Button() { Text = msg, TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.SubheadingFontSize, IsMoreLines = true, TextAlignment = TextAlignment.TopLeft }; contentView.AddChidren(msgTv); waitPage.Hide(); waitPage.RemoveFromParent(); }); }).Start(); } } }