xm
2020-07-31 ecba45c93391066bc30c7bd602c3a7683fbb99a7
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs
@@ -330,7 +330,7 @@
        private void CheckNewVersion(PicViewControl btnNewVersion)
        {
            //获取网关版本信息
            var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway, ShowErrorMode.NO);
            var result = HdlGatewayLogic.Current.GetGatewayAllNewVersion(this.zbGateway);
            if (result == null)
            {
                return;
@@ -380,9 +380,9 @@
        /// </summary>
        /// <param name="gatewayId"></param>
        /// <param name="online"></param>
        private void DoSwitchGateway()
        private async void DoSwitchGateway()
        {
            var result = HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId);
            var result = await HdlGatewayLogic.Current.DoSwitchGateway(zbGateway.GwId);
            if (result == false)
            {
                return;
@@ -425,13 +425,13 @@
        /// <param name="row"></param>
        private void DeleteGateway(string strWayId)
        {
            HdlThreadLogic.Current.RunThread(() =>
            HdlThreadLogic.Current.RunThread(async () =>
            {
                //打开进度条
                this.ShowProgressBar();
                //删除云端网关
                bool result = HdlGatewayLogic.Current.DeleteGateway(strWayId);
                bool result = await HdlGatewayLogic.Current.DeleteGateway(strWayId);
                //关闭进度条
                this.CloseProgressBar();
                if (result == false)