public static ManagePackagesViewModel Create( RecentManagedNuGetPackagesRepository recentPackagesRepository, IDotNetProject project) { var solutionManager = PackageManagementServices.Workspace.GetSolutionManager(IdeApp.ProjectOperations.CurrentSelectedSolution); var solution = new SolutionProxy(IdeApp.ProjectOperations.CurrentSelectedSolution); return(new ManagePackagesViewModel(solutionManager, solution, recentPackagesRepository, project)); }
void OnSolutionLoaded (Solution solution) { OpenSolution = new SolutionProxy (solution); EventHandler handler = SolutionLoaded; if (handler != null) { handler (this, new EventArgs ()); } }
void OnSolutionUnloaded (Solution solution) { solution.SolutionItemAdded -= SolutionItemAdded; OpenSolution = null; var handler = SolutionUnloaded; if (handler != null) { var proxy = new SolutionProxy (solution); handler (this, new DotNetSolutionEventArgs (proxy)); } }
void OnSolutionLoaded (Solution solution) { solution.SolutionItemAdded += SolutionItemAdded; OpenSolution = new SolutionProxy (solution); EventHandler handler = SolutionLoaded; if (handler != null) { handler (this, new DotNetSolutionEventArgs (OpenSolution)); } }
void OnSolutionUnloaded(Solution solution) { solution.SolutionItemAdded -= SolutionItemAdded; OpenSolution = null; var handler = SolutionUnloaded; if (handler != null) { var proxy = new SolutionProxy(solution); handler(this, new DotNetSolutionEventArgs(proxy)); } }
void OnSolutionLoaded(Solution solution) { solution.SolutionItemAdded += SolutionItemAdded; OpenSolution = new SolutionProxy(solution); EventHandler handler = SolutionLoaded; if (handler != null) { handler(this, new DotNetSolutionEventArgs(OpenSolution)); } }
public PackageManagementSolutionProjectService(Solution solution) { this.solution = new SolutionProxy(solution); }
public PackageManagementSolutionProjectService (Solution solution) { this.solution = new SolutionProxy (solution); }