public static void BuildChildNodes2 (IBuilder builder, Folder folder)
		{
			string path = GetFolderPath (folder);

			ProjectFileCollection files;
			List<string> folders;

			GetFolderContent (path, out files, out folders);

			foreach (ProjectFile file in files)
				builder.AddChild (file);

			foreach (string subfolder in folders)
				builder.AddChild (new Folder (subfolder, folder));
		}
Ejemplo n.º 2
0
 public Builder(
     IBuilder parent)
 {
     _parent = parent;
     if (_parent != null)
     {
         _parent.AddChild(this);
     }
 }
Ejemplo n.º 3
0
        public static void BuildChildNodes2(IBuilder builder, Folder folder)
        {
            string path = GetFolderPath(folder);

            ProjectFileCollection files;
            List <string>         folders;

            GetFolderContent(path, out files, out folders);

            foreach (ProjectFile file in files)
            {
                builder.AddChild(file);
            }

            foreach (string subfolder in folders)
            {
                builder.AddChild(new Folder(subfolder, folder));
            }
        }