void SolutionLoaded (object sender, SolutionEventArgs e)
		{
			if (!PackageManagementServices.Options.IsAutomaticPackageRestoreOnOpeningSolutionEnabled)
				return;

			var restorer = new PackageRestorer (e.Solution);
			DispatchService.BackgroundDispatch (() => restorer.Restore ());
		}
 static void OnSolutionLoaded(object o, SolutionEventArgs args)
 {
     args.Solution.SolutionItemAdded += OnSolutionItemAdded;
     foreach (SolutionItem item in args.Solution.Items) {
         if (item is DotNetProject) {
             OnProjectAdded((DotNetProject)item);
         }
     }
 }
		void SolutionUnloaded (object sender, SolutionEventArgs e)
		{
			try {
				Runtime.RunInMainThread (() => {
					RemoveSolution (e.Solution);
				});
			} catch (Exception ex) {
				LoggingService.LogError ("Unable to unload solution manager.", ex);
			}
		}
		async void SolutionLoaded (object sender, SolutionEventArgs e)
		{
			try {
				if (ShouldRestorePackages) {
					await RestoreAndCheckForUpdates (e.Solution);
				} else if (ShouldCheckForUpdates && AnyProjectHasPackages (e.Solution)) {
					CheckForUpdates (e.Solution);
				}
			} catch (Exception ex) {
				LoggingService.LogError ("PackageManagementStartupHandler error", ex);
			}
		}
		void SolutionLoaded (object sender, SolutionEventArgs e)
		{
			ClearUpdatedPackagesInSolution ();

			if (ShouldRestorePackages) {
				RestoreAndCheckForUpdates (e.Solution);
			} else if (ShouldCheckForUpdates && AnyProjectHasPackages (e.Solution)) {
				// Use background dispatch even though the check is not done on the
				// background dispatcher thread so that the solution load completes before
				// the check for updates starts. Otherwise the check for updates finishes
				// before the solution loads and the status bar never reports that
				// package updates were being checked.
				PackageManagementBackgroundDispatcher.Dispatch (() => {
					CheckForUpdates ();
				});
			}
		}
 void SolutionLoaded(object sender, SolutionEventArgs e)
 {
     logView.Clear ();
 }
        private void SolutionEventsOnOpened(object sender, SolutionEventArgs args)
        {
            try
            {
                if (args.Solution == null)
                    return;

                _solutionName = args.Solution.Name;
            }
            catch (Exception ex)
            {
                Logger.Instance.Error("SolutionEventsOnOpened : " + ex.Message);
            }
        }
		void SolutionUnloaded (object sender, SolutionEventArgs e)
		{
			ClearUpdatedPackagesInSolution ();
		}
		protected virtual void OnCurrentSelectedSolutionChanged(SolutionEventArgs e)
		{
			if (CurrentSelectedSolutionChanged != null) {
				CurrentSelectedSolutionChanged (this, e);
			}
		}
 void SolutionLoaded(object sender, SolutionEventArgs e)
 {
     OnSolutionLoaded (e.Solution);
 }
		public void CombineOpened (object sender, SolutionEventArgs args)
		{
			if (args.Solution == project.ParentSolution) {
				foreach (string pref in refNames) {
					Project p = project.ParentSolution.FindProjectByName (pref);
					if (p != null) project.References.Add (new ProjectReference (p));
				}
			}
		}
		void HandleCurrentSelectedSolutionChanged (object sender, SolutionEventArgs e)
		{
			if (currentSolution != null) {
				currentSolution.StartupConfigurationChanged -= HandleStartupItemChanged;
				currentSolution.Saved -= HandleUpdateCombosWidthDelay;
				currentSolution.EntrySaved -= HandleUpdateCombosWidthDelay;
			}

			currentSolution = e.Solution;

			if (currentSolution != null) {
				currentSolution.StartupConfigurationChanged += HandleStartupItemChanged;
				currentSolution.Saved += HandleUpdateCombosWidthDelay;
				currentSolution.EntrySaved += HandleUpdateCombosWidthDelay;
			}

			TrackStartupProject ();

			UpdateCombos ();
		}
		void HandleIdeIdeAppWorkspaceSolutionLoaded (object sender, SolutionEventArgs e)
		{
			MonoDevelop.Core.LoggingService.LogInfo ("Solution Loaded: {0}", e.Solution.FileName.FileName);
			client.SendFilePath (e.Solution.FileName, EventType.Access);
		}
		void SolutionLoaded (object sender, SolutionEventArgs e)
		{
			RunPackageInitializationScripts (e.Solution);
		}
 static void OnSolutionUnloaded(object o, SolutionEventArgs args)
 {
     args.Solution.SolutionItemAdded -= OnSolutionItemAdded;
 }
 void SolutionLoaded(object sender, SolutionEventArgs e)
 {
     try {
         if (e.Solution.HasAspNetProjects ()) {
             LoadAspNetProjectSystem (e.Solution);
         }
     } catch (Exception ex) {
         MessageService.ShowError (ex.Message);
     }
 }
 void SolutionUnloaded(object sender, SolutionEventArgs e)
 {
     UnloadProjectSystem ();
 }
 static void SolutionUnloaded(object sender, SolutionEventArgs e)
 {
     DnxOutputPad.LogView.Clear ();
 }
Exemple #19
0
		void HandleCurrentSelectedSolutionChanged (object sender, SolutionEventArgs e)
		{
			if (currentSolution != null) {
				currentSolution.StartupItemChanged -= HandleStartupItemChanged;
				currentSolution.Saved -= HandleSolutionSaved;
			}

			currentSolution = IdeApp.ProjectOperations.CurrentSelectedSolution;

			if (currentSolution != null) {
				currentSolution.StartupItemChanged += HandleStartupItemChanged;
				currentSolution.Saved += HandleSolutionSaved;
			}

			TrackStartupProject ();

			UpdateCombos ();
		}
 void IdeApp_Workspace_SolutionChanged(object sender, SolutionEventArgs e)
 {
     SaveHistory ();
 }