From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 18 九月 2020 13:58:19 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs
index 529ff96..61669cd 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs
@@ -106,31 +106,31 @@
                         btnDelete.ButtonClickEvent += (sender, e) =>
                         {
                             this.ShowMassage(ShowMsgType.Confirm, "鏄惁鍒犻櫎缃戝叧鐨勮繖涓枃浠�(闇�璋ㄦ厧)", async () =>
-                             {
-                                 var result9 = await zbGateway.DelFileOrDirAsync("/etc/hdlDat/" + fileName);
-                                 if (result9 == null || result9.delFileOrDirResponseData == null)
-                                 {
-                                     this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧娌℃湁鍥炲");
-                                     return;
-                                 }
-                                 if (result9.delFileOrDirResponseData.Result == 1)
-                                 {
-                                     this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧璇磋繖涓笢瑗夸笉瀛樺湪");
-                                     return;
-                                 }
-                                 if (result9.delFileOrDirResponseData.Result == 2)
-                                 {
-                                     this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧璇磋繖涓笢瑗夸笉鍏佽鍒犻櫎");
-                                     return;
-                                 }
-                                 if (result9.delFileOrDirResponseData.Result != 0)
-                                 {
-                                     this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,鏃犳硶璇嗗埆鐨勭姸鎬佺爜(" + result9.delFileOrDirResponseData.Result + ")");
-                                     return;
-                                 }
-                                 rowContr1.RemoveFromParent();
-                                 this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢鎴愬姛");
-                             });
+                            {
+                                var result9 = await zbGateway.DelFileOrDirAsync("/etc/hdlDat/" + fileName);
+                                if (result9 == null || result9.delFileOrDirResponseData == null)
+                                {
+                                    this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧娌℃湁鍥炲");
+                                    return;
+                                }
+                                if (result9.delFileOrDirResponseData.Result == 1)
+                                {
+                                    this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧璇磋繖涓笢瑗夸笉瀛樺湪");
+                                    return;
+                                }
+                                if (result9.delFileOrDirResponseData.Result == 2)
+                                {
+                                    this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,缃戝叧璇磋繖涓笢瑗夸笉鍏佽鍒犻櫎");
+                                    return;
+                                }
+                                if (result9.delFileOrDirResponseData.Result != 0)
+                                {
+                                    this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢澶辫触,鏃犳硶璇嗗埆鐨勭姸鎬佺爜(" + result9.delFileOrDirResponseData.Result + ")");
+                                    return;
+                                }
+                                rowContr1.RemoveFromParent();
+                                this.ShowMassage(ShowMsgType.Tip, "鍒犻櫎鏂囦欢鎴愬姛");
+                            });
                         };
                     }
 
@@ -142,7 +142,7 @@
                     btnDelete.Visible = false;
                     btnDelete.ButtonClickEvent += (sender, e) =>
                     {
-                        this.ShowMassage(ShowMsgType.Confirm, "纭畾鏄惁鍒犻櫎杩欎簺鏂囦欢?",async () =>
+                        this.ShowMassage(ShowMsgType.Confirm, "纭畾鏄惁鍒犻櫎杩欎簺鏂囦欢?", async () =>
                         {
                             foreach (var listfile in this.listDeleteFile)
                             {
@@ -194,10 +194,10 @@
         public override void CloseFormBefore()
         {
             HdlFileLogic.Current.DeleteDirectory(System.IO.Path.Combine(DirNameResourse.LocalMemoryDirectory, "MyTempDir"));
-            
+
             base.CloseFormBefore();
         }
 
         #endregion
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0