From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 09:07:13 +0800 Subject: [PATCH] 新云端Ver1.3 --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs | 62 +++++++++++++++--------------- 1 files changed, 31 insertions(+), 31 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs index 529ff96..29f717b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionGatewayListFileForm.cs @@ -29,7 +29,7 @@ /// <param name="i_gateway"></param> public void ShowForm(ZbGateway i_gateway) { - HdlFileLogic.Current.CreateDirectory(System.IO.Path.Combine(DirNameResourse.LocalMemoryDirectory, "MyTempDir"), true); + HdlFileLogic.Current.CreateDirectory(System.IO.Path.Combine(HdlFileNameResourse.LocalMemoryDirectory, "MyTempDir"), true); this.zbGateway = i_gateway; //璁剧疆鏍囬淇℃伅 base.SetTitleText("缃戝叧鏂囦欢鍒楄〃"); @@ -38,7 +38,7 @@ var btnButton = new NormalViewControl(300, 69, true); btnButton.Gravity = Gravity.CenterVertical; - btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(300) - ControlCommonResourse.XXLeft; + btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(300) - HdlControlResourse.XXLeft; btnButton.TextColor = UserCenterColor.Current.TopLayoutTitleText; btnButton.TextAlignment = TextAlignment.CenterRight; btnButton.TextSize = 17; @@ -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) { @@ -193,11 +193,11 @@ /// </summary> public override void CloseFormBefore() { - HdlFileLogic.Current.DeleteDirectory(System.IO.Path.Combine(DirNameResourse.LocalMemoryDirectory, "MyTempDir")); - + HdlFileLogic.Current.DeleteDirectory(System.IO.Path.Combine(HdlFileNameResourse.LocalMemoryDirectory, "MyTempDir")); + base.CloseFormBefore(); } #endregion } -} +} \ No newline at end of file -- Gitblit v1.8.0