| | |
| | | /// </summary> |
| | | void CheckLinkStatus() |
| | | { |
| | | if (Control.Ins.GatewayOnline) |
| | | if (!Control.Ins.GatewayOnline_Local && !Control.Ins.GatewayOnline_Cloud) |
| | | { |
| | | if (Control.Ins.IsRemote) |
| | | bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail; |
| | | } |
| | | else |
| | | { |
| | | if (Control.Ins.GatewayOnline_Cloud) |
| | | { |
| | | bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.MainColor; |
| | | } |
| | |
| | | { |
| | | bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipRemote; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail; |
| | | } |
| | | } |
| | | |
| | |
| | | btnChangeScene.IsBold = false; |
| | | CurShowTypeIsFunction = true; |
| | | contentView.PageIndex = 0; |
| | | |
| | | }; |
| | | |
| | | //var client = new BlufiClient(); |
| | | //client.PostPackageLengthLimit = 128; |
| | | //client.RequestDeviceScan(); |
| | | //client.RequestDeviceStatus(); |
| | | //client.BlufiDelegate.Blufi_DidReceiveDeviceScanResponse(); |
| | | |
| | | |
| | | btnChangeScene.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | btnChangeScene.IsSelected = true; |