From 002bb6950a15e703e2ad6ef7b2b4c5d80c4ee64b Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 22 三月 2021 17:56:07 +0800
Subject: [PATCH] 2021-3-22-2

---
 HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs |  279 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 279 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs
new file mode 100644
index 0000000..f38036f
--- /dev/null
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/TvControlPage.cs
@@ -0,0 +1,279 @@
+锘縰sing System;
+using HDL_ON.DriverLayer;
+using HDL_ON.Entity;
+using HDL_ON.Stan;
+using HDL_ON.UI.CSS;
+using Shared;
+
+namespace HDL_ON.UI
+{
+    public class TvControlPage : DeviceFunctionCardCommonForm
+    {
+        #region 鈻� 鍙橀噺澹版槑___________________________
+
+        Button btnChangeTVAV;
+        FrameLayout topMenuView;
+        Button btnTopMenuUp;
+        Button btnTopMenuLeft;
+        Button btnTopMenuRight;
+        Button btnTopMenuDown;
+        Button btnOk;
+        FrameLayout channleView;
+        Button btnChlReduce;
+        Button btnChlPlus;
+        FrameLayout volView;
+        Button btnVolReduce;
+        Button btnVolPlus;
+        Button btnBack;
+        Button btnMenu;
+        Button btn123;
+        Button btnMute;
+        Button btnPower;
+
+        #endregion
+
+        /// <summary>
+        /// 鍒濆鍖栫櫧鑹插尯鍩熺殑鍐呭
+        /// </summary>
+        public override void InitFrameWhiteContent()
+        {
+
+            base.ShowColltionButton = false;
+            base.SetTitleText(Language.StringByID(StringId.Electric));
+
+            //鍒濆鍖栫涓�涓储寮曢〉鐨勫唴瀹�
+            this.InitFrameWhiteContent1();
+        }
+
+        /// <summary>
+        /// 鍒濆鍖栫涓�涓储寮曢〉鐨勫唴瀹�
+        /// </summary>
+        private void InitFrameWhiteContent1()
+        {
+            FrameLayout controlView = new FrameLayout()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(88),
+                Width = Application.GetRealWidth(327),
+                Height = Application.GetRealHeight(526),
+                BackgroundImagePath = "Public/Fragmentbg.png",
+            };
+            this.AddChidren(controlView);
+
+            btnChangeTVAV = new Button()
+            {
+                Y = Application.GetRealHeight(8),
+                Gravity = Gravity.CenterHorizontal,
+                Width = Application.GetRealWidth(78),
+                Height = Application.GetRealHeight(49),
+                Text = "TV/AV",
+                TextAlignment = TextAlignment.Center,
+                TextColor = CSS_Color.MainColor,
+                TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel,
+            };
+            controlView.AddChidren(btnChangeTVAV);
+
+            #region 杞洏鎺у埗鍖哄煙
+            topMenuView = new FrameLayout()
+            {
+                Y = Application.GetRealHeight(88),
+                Gravity = Gravity.CenterHorizontal,
+                Width = Application.GetRealWidth(199),
+                Height = Application.GetRealWidth(199),
+                BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png",
+            };
+            controlView.AddChidren(topMenuView);
+
+            btnTopMenuUp = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Width = Application.GetRealWidth(80),
+                Height = Application.GetRealWidth(50),
+            };
+            topMenuView.AddChidren(btnTopMenuUp);
+
+            btnTopMenuLeft = new Button()
+            {
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetRealWidth(50),
+                Height = Application.GetRealWidth(80),
+            };
+            topMenuView.AddChidren(btnTopMenuLeft);
+
+            btnTopMenuRight = new Button()
+            {
+                X = Application.GetRealWidth(150),
+                Gravity = Gravity.CenterVertical,
+                Width = Application.GetRealWidth(50),
+                Height = Application.GetRealWidth(80),
+            };
+            topMenuView.AddChidren(btnTopMenuRight);
+
+            btnTopMenuDown = new Button()
+            {
+                Y = Application.GetRealWidth(150),
+                Gravity = Gravity.CenterHorizontal,
+                Width = Application.GetRealWidth(80),
+                Height = Application.GetRealWidth(50),
+            };
+            topMenuView.AddChidren(btnTopMenuDown);
+
+            btnOk = new Button()
+            {
+                Gravity = Gravity.Center,
+                Width = Application.GetRealWidth(100),
+                Height = Application.GetRealWidth(100),
+            };
+            topMenuView.AddChidren(btnOk);
+
+
+
+            #endregion
+
+
+            #region 棰戦亾闊抽噺璋冭妭
+            channleView = new FrameLayout()
+            {
+                X = Application.GetRealWidth(26),
+                Y = Application.GetRealHeight(246),
+                Width = Application.GetRealWidth(44),
+                Height = Application.GetRealHeight(102),
+                BackgroundImagePath = "FunctionIcon/Electrical/TV/MenuBgIcon.png",
+            };
+            controlView.AddChidren(channleView);
+
+            btnChlReduce = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(10),
+                Width = Application.GetRealWidth(24),
+                Height = Application.GetRealWidth(24),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/PlusIcon.png"
+            };
+            channleView.AddChidren(btnChlReduce);
+
+            Button btnChlText;
+            btnChlText = new Button()
+            {
+                Gravity = Gravity.CenterVertical,
+                Height = Application.GetRealWidth(23),
+                TextAlignment = TextAlignment.Center,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextID = StringId.Chl,
+            };
+            channleView.AddChidren(btnChlText);
+
+            btnChlPlus = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(66),
+                Width = Application.GetRealWidth(24),
+                Height = Application.GetRealWidth(24),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/ReduceIcon.png"
+            };
+            channleView.AddChidren(btnChlPlus);
+
+            volView = new FrameLayout()
+            {
+                X = Application.GetRealWidth(257),
+                Y = Application.GetRealHeight(246),
+                Width = Application.GetRealWidth(44),
+                Height = Application.GetRealHeight(102),
+                BackgroundImagePath = "FunctionIcon/Electrical/TV/MenuBgIcon.png",
+            };
+            controlView.AddChidren(volView);
+
+            btnVolReduce = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(10),
+                Width = Application.GetRealWidth(24),
+                Height = Application.GetRealWidth(24),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/PlusIcon.png"
+            };
+            volView.AddChidren(btnVolReduce);
+
+            Button btnVolText;
+            btnVolText = new Button()
+            {
+                Gravity = Gravity.CenterVertical,
+                Height = Application.GetRealWidth(23),
+                TextAlignment = TextAlignment.Center,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextColor = CSS_Color.FirstLevelTitleColor,
+                TextID = StringId.Vol,
+            };
+            volView.AddChidren(btnVolText);
+
+            btnVolPlus = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(66),
+                Width = Application.GetRealWidth(24),
+                Height = Application.GetRealWidth(24),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/ReduceIcon.png"
+            };
+            volView.AddChidren(btnVolPlus);
+
+
+
+            #endregion
+
+            #region 搴曢儴鎺у埗鍖哄煙
+            btnBack = new Button()
+            {
+                X = Application.GetRealWidth(30),
+                Y = Application.GetRealHeight(386),
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealWidth(40),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVBackIcon.png",
+            };
+            controlView.AddChidren(btnBack);
+
+            btnMenu = new Button()
+            {
+                X = Application.GetRealWidth(106),
+                Y = Application.GetRealHeight(386),
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealWidth(40),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVMenuIcon.png",
+            };
+            controlView.AddChidren(btnMenu);
+
+            btn123 = new Button()
+            {
+                X = Application.GetRealWidth(182),
+                Y = Application.GetRealHeight(386),
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealWidth(40),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/TV123Icon.png",
+            };
+            controlView.AddChidren(btn123);
+
+            btnMute = new Button()
+            {
+                X = Application.GetRealWidth(258),
+                Y = Application.GetRealHeight(386),
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealWidth(40),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVMuteIcon.png",
+            };
+            controlView.AddChidren(btnMute);
+
+            btnPower = new Button()
+            {
+                Gravity = Gravity.CenterHorizontal,
+                Y = Application.GetRealHeight(462),
+                Width = Application.GetRealWidth(40),
+                Height = Application.GetRealWidth(40),
+                UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVPowerIcon.png",
+            };
+            controlView.AddChidren(btnPower);
+
+        }
+
+        #endregion
+
+    }
+}
\ No newline at end of file

--
Gitblit v1.8.0