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/RollingShutterPageBLL.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs
index 94bfddc..a431833 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/RollingShutterPageBLL.cs
@@ -146,6 +146,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 new System.Threading.Thread(() =>
                 {
@@ -174,6 +175,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 new System.Threading.Thread(() => {
                     System.Threading.Thread.Sleep(2000);
@@ -199,6 +201,7 @@
                         Text = Language.StringByID(StringId.DeviceOfflineCannotOption),
                         Direction = AMPopTipDirection.None,
                     }.Show(MainPage.BaseView);
+                    return;
                 }
                 new System.Threading.Thread(() =>
                 {
@@ -235,7 +238,7 @@
             //    DriverLayer.Control.Ins.SendWriteCommand(function, d);
             //};
 
-            if (!function.online)
+            if (function.online)
             {
 
                 btnCurtainStop.MouseDownEventHandler = (sender, e) =>

--
Gitblit v1.8.0