//==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectNode"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <remarks>
 /// The caption will get set by Visual Studio during initialization. The absolute path
 /// will be set when the project is loaded, so we'll just set the absolute path to some
 /// dummy value for now.
 /// </remarks>
 public ProjectNode(Hierarchy hierarchy)
     : base(hierarchy, defaultProjectPath)
 {
     this.ExpandByDefault = true;
     this.Expanded = true;
     this.AddReferenceFolder();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Node"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <param name="absolutePath">The absolute path to the node.</param>
 /// <param name="buildAction">The action that should be taken for this node when building the project.</param>
 protected Node(Hierarchy hierarchy, string absolutePath, BuildAction buildAction)
 {
     this.hierarchy = hierarchy;
     this.hierarchyId = nextHierarchyId;
     nextHierarchyId++;
     this.absolutePath = this.CanonicalizePath(absolutePath);
     this.BuildAction = buildAction;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceFolderNode"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <param name="rootDirectory">The absolute path to the folder.</param>
 /// <param name="caption">The folder's caption.</param>
 protected ReferenceFolderNode(Hierarchy hierarchy, string rootDirectory, string caption)
     : base(hierarchy, Path.Combine(rootDirectory, caption))
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceFolderNode"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <param name="rootDirectory">The absolute path to the folder.</param>
 public ReferenceFolderNode(Hierarchy hierarchy, string rootDirectory)
     : this(hierarchy, rootDirectory, SconceStrings.ReferenceFolderCaption)
 {
 }
Exemple #5
0
 //==========================================================================================
 // Constructors
 //==========================================================================================
 public TextNode(Hierarchy hierarchy, string absoluteDirectory, string caption)
     : base(hierarchy, Path.Combine(absoluteDirectory, caption))
 {
     this.caption = caption;
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixlibReferenceFolderNode"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <param name="rootDirectory">The absolute path to the folder.</param>
 public WixlibReferenceFolderNode(Hierarchy hierarchy, string rootDirectory)
     : base(hierarchy, rootDirectory, WixStrings.WixlibReferenceFolderCaption)
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 public WixlibReferenceFileNode(Hierarchy hierarchy, string absolutePath)
     : base(hierarchy, absolutePath)
 {
 }
Exemple #8
0
 public FileNode(Hierarchy hierarchy, string absolutePath, BuildAction buildAction)
     : base(hierarchy, absolutePath, buildAction)
 {
 }
Exemple #9
0
 //==========================================================================================
 // Constructors
 //==========================================================================================
 public FileNode(Hierarchy hierarchy, string absolutePath)
     : base(hierarchy, absolutePath)
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 public VirtualFolderNode(Hierarchy hierarchy, string absolutePath)
     : base(hierarchy, absolutePath)
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixProjectNode"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 public WixProjectNode(Hierarchy hierarchy)
     : base(hierarchy)
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 public WixFileNode(Hierarchy hierarchy, string absolutePath)
     : base(hierarchy, absolutePath, BuildAction.Compile)
 {
 }
Exemple #13
0
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="Node"/> class.
 /// </summary>
 /// <param name="hierarchy">The parent <see cref="Hierarchy"/> object.</param>
 /// <param name="absolutePath">The absolute path to the node.</param>
 protected Node(Hierarchy hierarchy, string absolutePath)
     : this(hierarchy, absolutePath, BuildAction.None)
 {
 }