From 80075a89316729927db0ad65ca7674f81a942a93 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 26 七月 2023 09:22:41 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into wjc --- HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs | 84 ++++++++++++++++++++++++++++++++++++++--- 1 files changed, 77 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs index 3491440..7ce49b4 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/VideoDoorlockBatteryManagementPage.cs @@ -16,22 +16,92 @@ public void LoadPage() { - new TopViewDiv(bodyView, Language.StringByID(StringId.AudioSetup)).LoadTopView(); - bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; + new TopViewDiv(bodyView, Language.StringByID(StringId.BatteryManagement)).LoadTopView(); + bodyView.BackgroundColor = CSS_Color.BackgroundColor; - var btn = new Button() + + var view1 = new FrameLayout() { - Width = Application.GetRealWidth(343), + Y = Application.GetRealHeight(64), + Height = Application.GetRealHeight(276), + BackgroundColor = CSS_Color.MainBackgroundColor, + BackgroundImagePath = "FunctionIcon/DoorLock/VideoDoorlockBatteryManagementBg.png"//VideoDoorlockBatteryManagementBg + }; + bodyView.AddChidren(view1); + + + var btnTitle1 = new Button() + { + Width = Application.GetRealWidth(200), X = Application.GetRealWidth(16), - Y = Application.GetRealHeight(64 + 24), + Y = Application.GetRealHeight(16), IsMoreLines = true, TextAlignment = TextAlignment.TopLeft, - TextSize = CSS_FontSize.TextFontSize, + TextSize = CSS_FontSize.HeadlineFontSize, TextColor = CSS_Color.FirstLevelTitleColor, + Text = "闂ㄩ攣鐢垫簮", }; - bodyView.AddChidren(btn); + view1.AddChidren(btnTitle1); + var btnMsg1 = new Button() + { + X = Application.GetRealWidth(16), + Y = Application.GetRealHeight(57), + Width = Application.GetRealWidth(213), + Height = Application.GetRealHeight(200), + TextAlignment = TextAlignment.TopLeft, + TextColor = CSS_Color.FirstLevelTitleColor, + TextSize = CSS_FontSize.TextFontSize, + IsMoreLines = true, + Text = "鎵撳紑瀹ゅ唴闈㈡澘鐢垫睜鐩栵紝鍙栧嚭閿傜數姹犺繘琛屽厖鐢点�俓r\n璇蜂娇鐢� 5V2A 閫傞厤鍣ㄥ閿傜數姹犺繘琛屽厖鐢点��" + }; + view1.AddChidren(btnMsg1); + var view2 = new FrameLayout() + { + Y = Application.GetRealHeight(8) + view1.Bottom, + BackgroundColor = CSS_Color.MainBackgroundColor, + Height = Application.GetRealHeight(170) + }; + bodyView.AddChidren(view2); + + var btnTitle2 = new Button() + { + Width = Application.GetRealWidth(200), + X = Application.GetRealWidth(16), + Y = Application.GetRealHeight(16), + IsMoreLines = true, + TextAlignment = TextAlignment.TopLeft, + TextSize = CSS_FontSize.HeadlineFontSize, + TextColor = CSS_Color.FirstLevelTitleColor, + Text = "浣庣數閲忚鏄�", + BackgroundColor = CSS_Color.MainBackgroundColor, + }; + view2.AddChidren(btnTitle2); + + var btnMsg2 = new Button() + { + X = Application.GetRealWidth(16), + Y = Application.GetRealHeight(57), + Width = Application.GetRealWidth(213), + Height = Application.GetRealHeight(110), + TextAlignment = TextAlignment.TopLeft, + TextColor = CSS_Color.FirstLevelTitleColor, + TextSize = CSS_FontSize.TextFontSize, + IsMoreLines = true, + Text = "璁惧鐢甸噺浣庢椂灏嗚嚜鍔ㄥ叧闂娴嬪敜閱掑姛鑳斤紝浜鸿劯璇嗗埆寮�閿佷负鎵嬪姩瑙﹀彂銆俓r\n 褰撶數閲忎綆浜庢瀬闄愬�兼椂锛屼负淇濊瘉搴旀�ュ紑閿侊紝璁惧灏嗚嚜鍔ㄧ绾垮苟浠呮敮鎸佸紑閿佸姛鑳姐��" + }; + view2.AddChidren(btnMsg2); + + if (Language.CurrentLanguage != "Chinese") + { + btnTitle1.Text = "Door lock power supply"; + btnMsg1.Text = "Open the indoor panel battery cover and remove the lithium battery for charging.\r\n" + + "Please use a 5V2A adapter to charge the lithium battery."; + btnTitle2.Text = "Low battery description"; + btnMsg2.Text = "When the device's battery is low, the detection and wake-up function will be automatically turned off, and the facial recognition unlock will be manually triggered.\r\n" + + "When the battery level drops below the limit value, to ensure emergency unlocking, the device will automatically go offline and only support unlocking function."; + } } -- Gitblit v1.8.0