| | |
| | | btnMsg.TextID = R.MyInternationalizationString.uIsReBindingPleaseWaiting;
|
| | | bodyFrameLayout.AddChidren(btnMsg);
|
| | |
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | await System.Threading.Tasks.Task.Delay(1000);
|
| | | int value = await HdlGatewayLogic.Current.ReBindNewGateway(i_gateway, btnMsg);
|
| | | System.Threading.Thread.Sleep(1000);
|
| | | int value = HdlGatewayLogic.Current.ReBindNewGateway(i_gateway, btnMsg);
|
| | | if (value == 1)
|
| | | {
|
| | | //成功
|
| | | i_dicZbGatewayDiv[i_gateway.GwId] = 1;
|
| | | //我觉得这里需要获取一下新网关的设备列表
|
| | | Common.LocalDevice.Current.SetDeviceToMemmoryByGateway(i_gateway, true);
|
| | | if (i_gateway.IsMainGateWay == true)
|
| | | {
|
| | | //如果它是主网关,则刷新场景列表
|
| | | HdlSceneLogic.Current.RefreshSceneUIList(true);
|
| | | }
|
| | | }
|
| | | else if (value == 0)
|
| | | {
|