/// <summary>
        /// Initializes a new instance of the <see cref="SquirrelProjectFileNode"/> class.
        /// </summary>
        /// <param name="root">The project node.</param>
        /// <param name="e">The project element node.</param>
        internal SquirrelProjectFileNode2(ProjectNode root, ProjectElement e)
            : base(root, e)
        {
            SquirrelProjectNode project = (SquirrelProjectNode)root;

            imageIndex = project.NutIconIndex;
        }
Example #2
0
        /// <summary>
        /// Creates a new project by cloning an existing template project.
        /// </summary>
        /// <returns></returns>
        protected override ProjectNode CreateProject()
        {
            SquirrelProjectNode project = new SquirrelProjectNode(this.package);

            project.SetSite((IOleServiceProvider)((IServiceProvider)this.package).GetService(typeof(IOleServiceProvider)));
            return(project);
        }