黄学彪
2019-12-05 b3e96fce4cc01113128ddf8e0a18fc19594a9e56
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayInfoEditorForm.cs
@@ -395,10 +395,17 @@
        /// </summary>
        /// <param name="strWayId"></param>
        /// <param name="row"></param>
        private async void DeleteGateway(string strWayId)
        private void DeleteGateway(string strWayId)
        {
            HdlThreadLogic.Current.RunThread(async () =>
            {
                //打开进度条
                this.ShowProgressBar();
            //删除云端网关
            bool result = await HdlGatewayLogic.Current.DeleteGateway(strWayId);
                //关闭进度条
                this.CloseProgressBar();
            if (result == false)
            {
                return;
@@ -408,8 +415,12 @@
            {
                HdlGatewayLogic.Current.SaveGatewayIdToLocation(string.Empty);
            }
                HdlThreadLogic.Current.RunMain(() =>
                {
            //关闭自身
            this.CloseForm();
                });
            });
        }
        #endregion