Ejemplo n.º 1
0
        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));
			}
		}
Ejemplo n.º 5
0
        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));
            }
        }
Ejemplo n.º 6
0
        void OnSolutionLoaded(Solution solution)
        {
            solution.SolutionItemAdded += SolutionItemAdded;

            OpenSolution = new SolutionProxy(solution);

            EventHandler handler = SolutionLoaded;

            if (handler != null)
            {
                handler(this, new DotNetSolutionEventArgs(OpenSolution));
            }
        }
Ejemplo n.º 7
0
 public PackageManagementSolutionProjectService(Solution solution)
 {
     this.solution = new SolutionProxy(solution);
 }
		public PackageManagementSolutionProjectService (Solution solution)
		{
			this.solution = new SolutionProxy (solution);
		}