From 5727cf0b9b54da0a191dd1e23cb5abf21320fbff Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 25 十一月 2019 10:34:17 +0800
Subject: [PATCH] IOS使用新的项目名称

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFirmwareUpdateForm.cs |   49 ++++++++++++++++++++++++++-----------------------
 1 files changed, 26 insertions(+), 23 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFirmwareUpdateForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFirmwareUpdateForm.cs
index 71cf137..2cb58a4 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFirmwareUpdateForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFirmwareUpdateForm.cs
@@ -121,30 +121,33 @@
             //鏇存柊鐘舵�佸彉鍖栫殑浜嬩欢
             updateLogic.UpdateStatuChangedEvent += (div, msg) =>
             {
-                if (div == -1)
+                HdlThreadLogic.Current.RunMain(() =>
                 {
-                    //寮傚父
-                    this.ShowMassage(ShowMsgType.Tip, msg);
-                    this.CloseForm();
-                }
-                else if (div == 0)
-                {
-                    //涓�鑸俊鎭�
-                    btnText.Text = msg;
-                }
-                else if (div == 1)
-                {
-                    //鍗囩骇瀹屾垚
-                    this.ShowMassage(ShowMsgType.Tip, msg);
-                    //璋冪敤鍥炶皟鍑芥暟
-                    this.FinishUpdateEvent?.Invoke();
-                    this.CloseForm();
-                }
-                else if (div == 2)
-                {
-                    //涓诲姩缁堟鍗囩骇
-                    this.CloseForm();
-                }
+                    if (div == -1)
+                    {
+                        //寮傚父
+                        this.ShowMassage(ShowMsgType.Tip, msg);
+                        this.CloseForm();
+                    }
+                    else if (div == 0)
+                    {
+                        //涓�鑸俊鎭�
+                        btnText.Text = msg;
+                    }
+                    else if (div == 1)
+                    {
+                        //鍗囩骇瀹屾垚
+                        this.ShowMassage(ShowMsgType.Tip, msg);
+                        //璋冪敤鍥炶皟鍑芥暟
+                        this.FinishUpdateEvent?.Invoke();
+                        this.CloseForm();
+                    }
+                    else if (div == 2)
+                    {
+                        //涓诲姩缁堟鍗囩骇
+                        this.CloseForm();
+                    }
+                });
             };
             //杩涘害鍊兼敼鍙樹簨浠�
             updateLogic.ProgressEvent += (value) =>

--
Gitblit v1.8.0