int IVsSolutionEvents.OnQueryCloseSolution(object pUnkReserved, ref int pfCancel) { if (QueryCloseSolution != null) { var solution = VsEnvironment.Dte.Solution; var eventArgs = new QueryCloseSolutionEventArgs(solution, ref pfCancel); QueryCloseSolution(solution, eventArgs); pfCancel = eventArgs.Cancel ? 1 : 0; } return(VSConstants.S_OK); }
int IVsSolutionEvents.OnQueryCloseSolution(object pUnkReserved, ref int pfCancel) { if (QueryCloseSolution != null) { var solution = VsEnvironment.Dte.Solution; var eventArgs = new QueryCloseSolutionEventArgs(solution, ref pfCancel); QueryCloseSolution(solution, eventArgs); pfCancel = eventArgs.Cancel ? 1 : 0; } return VSConstants.S_OK; }