From 3aa397ab145382935492b11c1f18c9634e69910b Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 10 十二月 2020 16:45:00 +0800 Subject: [PATCH] 请合并,门锁和晾衣架第一版代码 --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs old mode 100755 new mode 100644 index 15592dc..6e2ceb4 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionDirectoryListForm.cs @@ -1,5 +1,6 @@ 锘縰sing System; using System.Collections.Generic; +using System.IO; using System.Text; namespace Shared.Phone.UserCenter.HideOption @@ -67,6 +68,62 @@ form.AddForm(Common.Config.Instance.FullPath); }; +#if iOS + //鏌ョ湅鍏ㄩ儴鏂囦欢 + var row0 = new FrameRowControl(listView.rowSpace / 2); + listView.AddChidren(row0); + row0.AddLeftCaption("IOS鍥剧墖", 800); + row0.AddRightArrow(); + row0.AddBottomLine(); + + row0.ButtonClickEvent += (sender, e) => + { + string fileName = "Item/Add.png"; + if (File.Exists(Path.Combine(Application.RootPath, fileName))) + { + var form = new HideOptionSearchAllFile(); + form.AddForm(Application.RootPath); + return; + } + + string dirPath = string.Empty; + if (Application.Skin != null) + { + dirPath = Application.Skin + "/" + fileName; + if (File.Exists(Path.Combine(Application.RootPath, dirPath))) + { + var form = new HideOptionSearchAllFile(); + form.AddForm(Path.Combine(Application.RootPath, Application.Skin + "/")); + return; + } + string text2 = Foundation.NSBundle.MainBundle.PathForResource(dirPath, null); + if (text2 != null) + { + var form = new HideOptionSearchAllFile(); + form.AddForm(text2.Replace(dirPath, string.Empty)); + return; + } + } + else + { + dirPath = "Phone/" + fileName; + if (File.Exists(Path.Combine(Application.RootPath, dirPath))) + { + var form = new HideOptionSearchAllFile(); + form.AddForm(Path.Combine(Application.RootPath, "Phone/")); + return; + } + string text2 = Foundation.NSBundle.MainBundle.PathForResource(dirPath, null); + if (text2 != null) + { + var form = new HideOptionSearchAllFile(); + form.AddForm(text2.Replace(dirPath, string.Empty)); + return; + } + } + }; +#endif + //鏌ョ湅鍏ㄩ儴鏂囦欢 var row2 = new FrameRowControl(listView.rowSpace / 2); listView.AddChidren(row2); -- Gitblit v1.8.0