From 565f7ae8ef01916cb435153a8a01ddd5c5f70c48 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 13 五月 2021 14:43:11 +0800 Subject: [PATCH] 1.场景延时修改成0-3600s --- HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs | 340 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 337 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs index 8e59d4b..9049d4e 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/DvdPage.cs @@ -1,10 +1,344 @@ 锘縰sing System; -namespace HDL_ON.UI.UI2.FuntionControlView.Electrical +using HDL_ON.Entity; +using HDL_ON.UI.CSS; +using Shared; + +namespace HDL_ON.UI { - public class DvdPage + public class DvdPage : FrameLayout { - public DvdPage() + #region 鎺т欢闆嗗悎 + FrameLayout bodyView; + /// <summary> + /// 鍔熻兘鍚嶇О鎸夐挳 + /// </summary> + Button btnFunctionName; + /// <summary> + /// 鎴块棿妤煎眰淇℃伅鎸夐挳 + /// </summary> + Button btnFromFoorAndRoom; + /// <summary> + /// 鏀惰棌鎸夐挳 + /// </summary> + Button btnCollection; + + 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 + + #region 鍖哄煙鍙橀噺 + TV tvTemp = new TV(); + Function function; + Button btnCollection_Out; + Button btnFunctionName_Out; + Button btnFromFloor_Out; + /// <summary> + /// 鍒锋柊鏄剧ず淇℃伅 + /// </summary> + Action actionRefresh; + #endregion + + public DvdPage(Function func) { + bodyView = this; + function = func; } + + + public void LoadPage(Button btnCollectionIcon, Button btnFunctionNameOut, Button btnFromFloorOut) + { + bodyView.BackgroundColor = CSS_Color.BackgroundColor; + btnCollection_Out = btnCollectionIcon; + btnFunctionName_Out = btnFunctionNameOut; + btnFromFloor_Out = btnFromFloorOut; + + FrameLayout controlView = new FrameLayout() + { + Gravity = Gravity.CenterHorizontal, + Y = Application.GetRealHeight(88), + Width = Application.GetRealWidth(327), + Height = Application.GetRealHeight(526), + BackgroundImagePath = "Public/Fragmentbg.png", + }; + bodyView.AddChidren(controlView); + + btnFunctionName = new Button() + { + X = Application.GetRealWidth(16), + Y = Application.GetRealHeight(14), + Width = Application.GetRealWidth(270), + Height = Application.GetRealHeight(37), + TextColor = CSS_Color.FirstLevelTitleColor, + TextAlignment = TextAlignment.CenterLeft, + TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel, + Text = function.name, + }; + controlView.AddChidren(btnFunctionName); + + btnFromFoorAndRoom = new Button() + { + X = Application.GetRealWidth(16), + Y = btnFunctionName.Bottom, + Width = Application.GetRealWidth(270), + Height = Application.GetRealHeight(21), + TextColor = CSS_Color.PromptingColor1, + TextAlignment = TextAlignment.CenterLeft, + TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + Text = function.GetRoomListName() + }; + controlView.AddChidren(btnFromFoorAndRoom); + + btnCollection = new Button() + { + X = Application.GetRealWidth(273), + Y = Application.GetRealHeight(14), + Width = Application.GetMinRealAverage(40), + Height = Application.GetMinRealAverage(40), + SelectedImagePath = "Collection/CollectionIcon.png", + UnSelectedImagePath = "Collection/CollectionGrayIcon.png", + IsSelected = function.collect + }; + controlView.AddChidren(btnCollection); + //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳� + //if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) + //{ + // controlView.AddChidren(btnCollection); + //} + + + + #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.GetRealWidth(102), + BackgroundImagePath = "FunctionIcon/Electrical/TV/MenuBgIcon.png", + }; + controlView.AddChidren(channleView); + + btnChlPlus = 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(btnChlPlus); + + 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); + + btnChlReduce = new Button() + { + Gravity = Gravity.CenterHorizontal, + Y = Application.GetRealWidth(66), + Width = Application.GetRealWidth(24), + Height = Application.GetRealWidth(24), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/ReduceIcon.png" + }; + channleView.AddChidren(btnChlReduce); + + volView = new FrameLayout() + { + X = Application.GetRealWidth(257), + Y = Application.GetRealHeight(246), + Width = Application.GetRealWidth(44), + Height = Application.GetRealWidth(102), + BackgroundImagePath = "FunctionIcon/Electrical/TV/MenuBgIcon.png", + }; + controlView.AddChidren(volView); + + btnVolPlus = 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(btnVolPlus); + + 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); + + btnVolReduce = new Button() + { + Gravity = Gravity.CenterHorizontal, + Y = Application.GetRealWidth(66), + Width = Application.GetRealWidth(24), + Height = Application.GetRealWidth(24), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/ReduceIcon.png" + }; + volView.AddChidren(btnVolReduce); + + + + #endregion + + #region 搴曢儴鎺у埗鍖哄煙 + btnBack = new Button() + { + X = Application.GetRealWidth(52), + Y = Application.GetRealHeight(402), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVBackIcon.png", + }; + controlView.AddChidren(btnBack); + + btnChangeTVAV = new Button() + { + X = Application.GetRealWidth(116), + Y = Application.GetRealHeight(402), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVAV.png", + }; + controlView.AddChidren(btnChangeTVAV); + + btn123 = new Button() + { + X = Application.GetRealWidth(180), + Y = Application.GetRealHeight(402), + Width = Application.GetRealWidth(40), + Height = Application.GetRealWidth(40), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TV123Icon.png", + }; + controlView.AddChidren(btn123); + + btnMute = new Button() + { + X = Application.GetRealWidth(244), + Y = Application.GetRealHeight(402), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVMuteIcon.png", + }; + controlView.AddChidren(btnMute); + + btnMenu = new Button() + { + X = Application.GetRealWidth(116), + Y = Application.GetRealHeight(466), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVMenuIcon.png", + }; + controlView.AddChidren(btnMenu); + + btnPower = new Button() + { + X = Application.GetRealWidth(180), + Y = Application.GetRealHeight(466), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), + UnSelectedImagePath = "FunctionIcon/Electrical/TV/TVPowerIcon.png", + }; + controlView.AddChidren(btnPower); + + #endregion + + new TopViewDiv(bodyView, Language.StringByID(StringId.TV)).LoadTopView_FunctionTop(function, actionRefresh); + DriverLayer.Control.Ins.SendReadCommand(function); + + } + + } } -- Gitblit v1.8.0