From 0fa54f0c6ad692834c1c518a9ed481cb06cc8db7 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期日, 06 六月 2021 10:45:24 +0800 Subject: [PATCH] 兆观传感器 --- HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs index c007007..b96c396 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs @@ -337,7 +337,7 @@ LoadEventList(); - new TopViewDiv(bodyView, Language.StringByID(StringId.TV)).LoadTopView_FunctionTop(function, actionRefresh); + new TopViewDiv(bodyView, Language.StringByID(StringId.STB)).LoadTopView_FunctionTop(function, actionRefresh); DriverLayer.Control.Ins.SendReadCommand(function); } @@ -558,7 +558,34 @@ } }; + + btnTopMenuUp.MouseDownEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIconUp.png"; + }; + btnTopMenuDown.MouseDownEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIconDown.png"; + }; + btnTopMenuLeft.MouseDownEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIconLeft.png"; + }; + btnTopMenuRight.MouseDownEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIconRight.png"; + }; + btnOk.MouseDownEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIconOk.png"; + }; + btnMenu.MouseUpEventHandler = (sender, e) => + { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; + if (DB_ResidenceData.Instance.GatewayType == 1) + { + Dictionary<string, string> d = new Dictionary<string, string>(); + d.Add("menu", ""); + Control.Ins.SendWriteCommand(function, d); + } + }; btnTopMenuUp.MouseUpEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -567,6 +594,7 @@ } }; btnTopMenuLeft.MouseUpEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -575,6 +603,7 @@ } }; btnTopMenuRight.MouseUpEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -583,6 +612,7 @@ } }; btnTopMenuDown.MouseUpEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -591,6 +621,7 @@ } }; btnOk.MouseUpEventHandler = (sender, e) => { + topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -598,6 +629,8 @@ Control.Ins.SendWriteCommand(function, d); } }; + + } } -- Gitblit v1.8.0