コード例 #1
0
ファイル: FolderTree.cs プロジェクト: djaus2/GetListofSamples
 public FolderTree(FolderTree parent)
 {
     if (parent == null)
     {
         Parent = -1;
         Count  = 0;
         Depth  = 0;
     }
     else
     {
         Parent = parent.Id;
         Depth  = parent.Depth + 1;
     }
     Id        = Count++;
     Children  = new List <int>();
     Projects  = new List <int>();
     Solutions = new List <string>();
     ReadMes   = new List <string>();
     Images    = new List <string>();
     if (AllFolderTrees == null)
     {
         AllFolderTrees = new List <FolderTree>();
     }
     AllFolderTrees.Add(this);
 }
コード例 #2
0
 public Project(FolderTree folderTree)
 {
     Id         = Count++;
     FolderTree = folderTree.Id;
     if (AllProjects == null)
     {
         AllProjects = new List <Project>();
     }
     AllProjects.Add(this);
     ProjectCSFileNames = new List <string>();
     OtherCSFileNames   = new List <string>();
 }