public int OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)
        {
            _logger?.LogEventMessage($"Hierarchy: {Utils.GetName(pHierarchy)}, Added: {Convert.ToBoolean(fAdded)}");

            AfterOpenProject?.Invoke(this, new ProjectOpenedEventArgs(pHierarchy, Convert.ToBoolean(fAdded)));
            return(VSConstants.S_OK);
        }
Ejemplo n.º 2
0
        int IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)
        {
            var realHierarchy = new Hierarchy(this, pHierarchy, HierarchyId.Root);

            AfterOpenProject?.Invoke(this, new ProjectEventArgs(realHierarchy));

            return(VSConstants.S_OK);
        }
Ejemplo n.º 3
0
 public int OnAfterOpenProject(IVsHierarchy hierarchy, int added)
 {
     return(AfterOpenProject?.Invoke(hierarchy, added) ?? VSConstants.S_OK);
 }
Ejemplo n.º 4
0
 int IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)
 {
     AfterOpenProject?.Invoke(this, new OpenProjectEventArgs(pHierarchy, Convert.ToBoolean(fAdded)));
     return(0);
 }
Ejemplo n.º 5
0
 int IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded)
 {
     AfterOpenProject?.Invoke(this, EventArgs.Empty);
     return(VSConstants.S_OK);
 }