예제 #1
0
    public VSProjectNode(VSProject package) {
      LogUtility.LogString("Entering Cosmos.VS.Package.VSProjectNode.ctor(VSProject)");
      try {
        this.Package = package;

        var dte = (EnvDTE.DTE)((IServiceProvider)this.Package).GetService(typeof(EnvDTE.DTE));
        buildEvents = dte.Events.BuildEvents;
        buildEvents.OnBuildProjConfigDone += buildEvents_OnBuildProjConfigDone;

        imageIndex = this.ImageHandler.ImageList.Images.Count;

        foreach (Image img in imageList.Images) {
          this.ImageHandler.AddImage(img);
        }
      } catch (Exception E) {
        LogUtility.LogException(E);
      } finally {
        LogUtility.LogString("Exiting Cosmos.VS.Package.VSProjectNode.ctor(VSProject)");
      }
    }
예제 #2
0
        public VSProjectNode(VSProject package)
        {
            LogUtility.LogString("Entering Cosmos.VS.Package.VSProjectNode.ctor(VSProject)");
            try {
                this.Package = package;

                var dte = (EnvDTE.DTE)((IServiceProvider)this.Package).GetService(typeof(EnvDTE.DTE));
                buildEvents = dte.Events.BuildEvents;
                buildEvents.OnBuildProjConfigDone += buildEvents_OnBuildProjConfigDone;

                imageIndex = this.ImageHandler.ImageList.Images.Count;

                foreach (Image img in imageList.Images)
                {
                    this.ImageHandler.AddImage(img);
                }
            } catch (Exception E) {
                LogUtility.LogException(E);
            } finally {
                LogUtility.LogString("Exiting Cosmos.VS.Package.VSProjectNode.ctor(VSProject)");
            }
        }
예제 #3
0
 public VSProjectFactory(VSProject package)
   : base(package) {
 }
예제 #4
0
 public VSProjectFactory(VSProject package)
     : base(package)
 {
 }