コード例 #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));
        }
コード例 #2
0
		void OnSolutionLoaded (Solution solution)
		{
			OpenSolution = new SolutionProxy (solution);

			EventHandler handler = SolutionLoaded;
			if (handler != null) {
				handler (this, new EventArgs ());
			}
		}
コード例 #3
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));
			}
		}
コード例 #4
0
		void OnSolutionLoaded (Solution solution)
		{
			solution.SolutionItemAdded += SolutionItemAdded;

			OpenSolution = new SolutionProxy (solution);

			EventHandler handler = SolutionLoaded;
			if (handler != null) {
				handler (this, new DotNetSolutionEventArgs (OpenSolution));
			}
		}
コード例 #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));
            }
        }
コード例 #6
0
        void OnSolutionLoaded(Solution solution)
        {
            solution.SolutionItemAdded += SolutionItemAdded;

            OpenSolution = new SolutionProxy(solution);

            EventHandler handler = SolutionLoaded;

            if (handler != null)
            {
                handler(this, new DotNetSolutionEventArgs(OpenSolution));
            }
        }
コード例 #7
0
 public PackageManagementSolutionProjectService(Solution solution)
 {
     this.solution = new SolutionProxy(solution);
 }
		public PackageManagementSolutionProjectService (Solution solution)
		{
			this.solution = new SolutionProxy (solution);
		}