| | |
| | | |
| | | 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); |
| | | |
| | | } |
| | |
| | | } |
| | | }; |
| | | |
| | | |
| | | 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>(); |
| | |
| | | } |
| | | }; |
| | | 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>(); |
| | |
| | | } |
| | | }; |
| | | 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>(); |
| | |
| | | } |
| | | }; |
| | | 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>(); |
| | |
| | | } |
| | | }; |
| | | 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>(); |
| | |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | } |
| | | }; |
| | | |
| | | |
| | | } |
| | | |
| | | } |