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); }
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); }
public int OnAfterOpenProject(IVsHierarchy hierarchy, int added) { return(AfterOpenProject?.Invoke(hierarchy, added) ?? VSConstants.S_OK); }
int IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded) { AfterOpenProject?.Invoke(this, new OpenProjectEventArgs(pHierarchy, Convert.ToBoolean(fAdded))); return(0); }
int IVsSolutionEvents.OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded) { AfterOpenProject?.Invoke(this, EventArgs.Empty); return(VSConstants.S_OK); }