コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }