wxr
2022-02-21 44538302375e489af520e320de908d8cfcf43691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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();
 
 
 
        }
    }
}