| | |
| | | /// <summary>
|
| | | /// 画面关闭
|
| | | /// </summary>
|
| | | public override void CloseForm()
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | ZigBee.Common.Application.IsSearchingGateway = false;
|
| | | //断开没有执行绑定的网关的mqtt
|
| | |
| | | foreach (var way in list)
|
| | | {
|
| | | ZbGateway.GateWayList.RemoveAll((obj) => HdlGatewayLogic.Current.GetGatewayId(obj) == HdlGatewayLogic.Current.GetGatewayId(way));
|
| | | way.DisConnect("Search");
|
| | | way.DisConnectLocalMqttClient("Search");
|
| | | }
|
| | | }
|
| | | if (UserCenterResourse.listActionFormId.Contains("UserMainForm") == false)
|
| | |
| | | UserView.UserPage.Instance.Fresh();
|
| | | }
|
| | |
|
| | | base.CloseForm();
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | | #endregion
|