From 88b60a998a4cd8cae54e017e9ae31b644347e382 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 06 七月 2022 09:31:28 +0800
Subject: [PATCH] 在离线更新

---
 HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
index 87044d5..56f5bde 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/MotorCurtainPageBLL.cs
@@ -145,6 +145,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 new System.Threading.Thread(() =>
                 {
@@ -173,6 +174,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 onCurtainAnimation = false;
                 new System.Threading.Thread(() =>
@@ -200,6 +202,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 new System.Threading.Thread(() =>
                 {
@@ -218,7 +221,7 @@
                 CurtainAnimation(100);
             };
 
-            if (!function.online)
+            if (function.online)
             {
                 btnCurtainStop.MouseDownEventHandler = (sender, e) =>
                 {

--
Gitblit v1.8.0