Beispiel #1
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Raised after closing all the nested projects owned by a parent hierarchy.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 public int OnAfterClosingChildren(IVsHierarchy pHierarchy)
 {
     if (AfterClosingChildren != null)
     {
         var e = new SolutionNodeEventArgs(SolutionEventType.AfterClosingChildren)
         {
             Hierarchy = pHierarchy
         };
         AfterClosingChildren(this, e);
     }
     return(VSConstants.S_OK);
 }
Beispiel #2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Raised after a project has been moved.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 public int OnAfterChangeProjectParent(IVsHierarchy pHierarchy)
 {
     if (AfterChangeProjectParent != null)
     {
         var e = new SolutionNodeEventArgs(SolutionEventType.AfterChangeProjectParent)
         {
             Hierarchy = pHierarchy
         };
         AfterChangeProjectParent(this, e);
     }
     return(VSConstants.S_OK);
 }
Beispiel #3
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Raised before the solution's subprojects are opened.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 public int OnBeforeOpeningChildren(IVsHierarchy pHierarchy)
 {
     if (BeforeOpeningChildren != null)
     {
         var e = new SolutionNodeEventArgs(SolutionEventType.BeforeOpeningChildren)
         {
             Hierarchy = pHierarchy
         };
         BeforeOpeningChildren(this, e);
     }
     return(VSConstants.S_OK);
 }