old mode 100755
new mode 100644
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.IO;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.HideOption
|
| | |
| | | listView.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listView);
|
| | |
|
| | | Type type = typeof(DirNameResourse);
|
| | | Type type = typeof(HdlFileNameResourse);
|
| | |
|
| | | var PropertyList = type.GetProperties();
|
| | |
|
| | |
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionFileListForm();
|
| | | var form = new HideOptionSearchAllFile();
|
| | | 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);
|
| | |
| | |
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new HideOptionFileListForm();
|
| | | var form = new HideOptionSearchAllFile();
|
| | | form.AddForm(directoryValue);
|
| | | };
|
| | | }
|