| | |
| | | /// </summary> |
| | | public static void RefreshFunctionView() |
| | | { |
| | | if (bodyView != null) |
| | | if (bodyView != null && MainPage.CurPageIndex==0) |
| | | { |
| | | bodyView.LoadDeviceFunctionControlZone(); |
| | | } |
| | |
| | | { |
| | | button.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | new TV().ControlTV(InfraredCode_TV.Power, tV); |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add("on_off", ""); |
| | | Control.Ins.SendWriteCommand(tV, d); |
| | | } |
| | | else |
| | | { |
| | | new TV().ControlTV(InfraredCode_TV.Power, tV); |
| | | } |
| | | }; |
| | | } |
| | | |