public void initWithFileArray(List <string> paths, string parentPath) { root = new FolderTreeNode("root"); foreach (string i in paths) { var f = new FolderTreeFile() { tree = this, root = root, fallPath = i }; f.ufileInfo = null; f.Key = i.Substring(parentPath.Length); } root.isChecked = true; }
public void initWithUcloudData(List <UFileInfo> uData) { root = new FolderTreeNode("root"); foreach (UFileInfo i in uData) { var f = new FolderTreeFile() { tree = this, root = root, fallPath = null }; f.ufileInfo = i; f.Key = i.Key; } root.isChecked = false; }