From 592974441a4df95fffd9167c90192da1a390b1c2 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 06 六月 2023 11:51:12 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' --- HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs | 223 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 208 insertions(+), 15 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs index 8d323c4..4e8852d 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/StbPage.cs @@ -421,6 +421,16 @@ } numberView.AddChidren(btn); btn.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} string index = (sender as Button).Text; btn.IsSelected = false; if (DB_ResidenceData.Instance.GatewayType == 1) @@ -474,6 +484,16 @@ { btnMenu.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -483,6 +503,16 @@ }; btnChlPlus.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -492,6 +522,16 @@ }; btnChlReduce.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -501,6 +541,16 @@ }; btnVolPlus.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -510,6 +560,16 @@ }; btnVolReduce.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -519,6 +579,16 @@ }; btnBack.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -529,6 +599,16 @@ btnMenu.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -538,10 +618,30 @@ }; btn123.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} ShowNumberView(); }; btnMute.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -551,6 +651,16 @@ }; btnPower.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} if (DB_ResidenceData.Instance.GatewayType == 1) { Dictionary<string, string> d = new Dictionary<string, string>(); @@ -560,23 +670,41 @@ }; - 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"; - }; + //if (!device.online) + { + 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) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -586,6 +714,17 @@ } }; btnTopMenuUp.MouseUpEventHandler = (sender, e) => { + + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -595,6 +734,17 @@ } }; btnTopMenuLeft.MouseUpEventHandler = (sender, e) => { + + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -604,6 +754,17 @@ } }; btnTopMenuRight.MouseUpEventHandler = (sender, e) => { + + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -613,6 +774,17 @@ } }; btnTopMenuDown.MouseUpEventHandler = (sender, e) => { + + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -622,6 +794,17 @@ } }; btnOk.MouseUpEventHandler = (sender, e) => { + + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} topMenuView.BackgroundImagePath = "FunctionIcon/Electrical/TV/TVOkIcon.png"; if (DB_ResidenceData.Instance.GatewayType == 1) { @@ -788,6 +971,16 @@ btn.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} Dictionary<string, string> d = new Dictionary<string, string>(); d.Add(attr.key, ""); Control.Ins.SendWriteCommand(device, d); -- Gitblit v1.8.0