Exemple #1
0
        /// <summary>
        /// Creates the project.
        /// </summary>
        /// <returns>ProjectNode.</returns>
        protected override ProjectNode CreateProject()
        {
            var project = new DTTestProjectNode(this.package);

            project.SetSite((IOleServiceProvider)((IServiceProvider)this.package).GetService(typeof(IOleServiceProvider)));
            return(project);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DTPreDefineNode"/> class.
        /// </summary>
        /// <param name="root">
        /// The root.
        /// </param>
        /// <param name="title">
        /// The title.
        /// </param>
        /// <param name="compilerVariable">
        /// The compiler variable.
        /// </param>
        /// <param name="bodeEnabled">
        /// The bode enabled.
        /// </param>
        public DTPreDefineNode(DTTestProjectNode root, string title, string compilerVariable, bool bodeEnabled)
            : base(root)
        {
            this.nodeEnabled       = bodeEnabled;
            this.dtTestProjectNode = root;
            this.title             = title;
            this.compilerVariable  = compilerVariable;
            this.actImageIndex     = this.imageIndex = this.ProjectMgr.ImageHandler.ImageList.Images.Count;

            foreach (Image img in imageList.Images)
            {
                this.ProjectMgr.ImageHandler.AddImage(img);
            }
        }