Esempio n. 1
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// We do not implement this event, we use OnAfterAttributeChangeEx instead.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 public int OnAfterAttributeChange(uint docCookie, uint grfAttribs)
 {
     if (AfterAttributeChange != null)
     {
         var e = new RdtDocumentChangedEventArgs(RdtEventType.AfterAttributeChange)
         {
             Document     = GetDocumentInfo(docCookie),
             ChangeFlags  = (RdtAttributeFlags)grfAttribs,
             HierarchyOld = null,
             MonikerOld   = string.Empty,
             ItemIdOld    = VSConstants.VSITEMID_NIL
         };
         AfterAttributeChange(e.Document, e);
     }
     return(VSConstants.S_OK);
 }
Esempio n. 2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Called after a document attribute is changed.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 public int OnAfterAttributeChangeEx(uint docCookie, uint grfAttribs, IVsHierarchy pHierOld,
                                     uint itemidOld, string pszMkDocumentOld, IVsHierarchy pHierNew, uint itemidNew,
                                     string pszMkDocumentNew)
 {
     if (AfterAttributeChangeEx != null)
     {
         var e = new RdtDocumentChangedEventArgs(RdtEventType.AfterAttributeChangeEx)
         {
             Document     = GetDocumentInfo(docCookie),
             ChangeFlags  = (RdtAttributeFlags)grfAttribs,
             HierarchyOld = pHierOld,
             MonikerOld   = pszMkDocumentOld,
             ItemIdOld    = itemidOld
         };
         AfterAttributeChangeEx(e.Document, e);
     }
     return(VSConstants.S_OK);
 }