void SolutionCreated(object sender, SolutionEventArgs e)
		{
			if (!AddInOptions.AutomaticallyAddFiles) return;
			string solutionFileName = e.Solution.FileName;
			string solutionDirectory = e.Solution.Directory;
			
			if (!CanBeVersionControlledFile(solutionDirectory)) return;
			
			try {
				using (SvnClientWrapper client = new SvnClientWrapper()) {
					SvnMessageView.HandleNotifications(client);
					
					Status status = client.SingleStatus(solutionDirectory);
					if (status.TextStatus == StatusKind.Unversioned) {
						client.Add(solutionDirectory, Recurse.None);
					}
					status = client.SingleStatus(solutionFileName);
					if (status.TextStatus == StatusKind.Unversioned) {
						client.Add(solutionFileName, Recurse.None);
						client.AddToIgnoreList(solutionDirectory, Path.GetFileName(solutionFileName) + ".cache");
					}
				}
				foreach (IProject p in e.Solution.Projects) {
					ProjectCreated(null, new ProjectEventArgs(p));
				}
			} catch (SvnClientException ex) {
				MessageService.ShowError(ex.Message);
			} catch (Exception ex) {
				MessageService.ShowError(ex, "Solution add exception");
			}
		}
Exemplo n.º 2
0
 static void OnSolutionClosing(SolutionEventArgs e)
 {
     if (SolutionClosing != null)
     {
         SolutionClosing(null, e);
     }
 }
Exemplo n.º 3
0
 internal static void OnSolutionCreated(SolutionEventArgs e)
 {
     if (SolutionCreated != null)
     {
         SolutionCreated(null, e);
     }
 }
Exemplo n.º 4
0
 static void OnSolutionSaved(SolutionEventArgs e)
 {
     if (SolutionSaved != null)
     {
         SolutionSaved(null, e);
     }
 }
 void SolutionOpened(object sender, SolutionEventArgs e)
 {
     try {
         RunPackageInitializationScripts(e.Solution);
     } catch (Exception ex) {
         scriptsConsole.WriteError(ex.Message);
     }
 }
Exemplo n.º 6
0
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			tasks.Clear();
		}
		static void SolutionOpened(object sender, SolutionEventArgs e)
		{
			// Load solution settings
			SolutionOptions = new CSharpFormattingOptionsPersistence(
				e.Solution.GlobalPreferences,
				new CSharpFormattingOptionsContainer(GlobalOptions.OptionsContainer)
				{
					DefaultText = StringParser.Parse("${res:CSharpBinding.Formatting.SolutionOptionReference}")
				});
		}
Exemplo n.º 8
0
		static void OnSolutionSaved(SolutionEventArgs e)
		{
			if (SolutionSaved != null) {
				SolutionSaved(null, e);
			}
		}
Exemplo n.º 9
0
		void IProjectServiceRaiseEvents.RaiseSolutionCreated(SolutionEventArgs e)
		{
			SolutionCreated(this, e);
		}
Exemplo n.º 10
0
 void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
 {
     projectBrowserPanel.ViewSolution(e.Solution);
     projectBrowserPanel.ReadViewState(e.Solution.Preferences.Properties);
 }
Exemplo n.º 11
0
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			taskView.ClearTasks();
			UpdateToolstripStatus();
		}
		void SolutionClosed(object sender, SolutionEventArgs e)
		{
			SolutionOptions.FormattingPolicyUpdated -= OnFormattingPolicyUpdated;
			SolutionOptions = null;
			projectOptions.Clear();
		}
		void SolutionOpened(object sender, SolutionEventArgs e)
		{
			// Load solution settings
			SolutionOptions = new CSharpFormattingPolicy(
				e.Solution.SDSettings,
				new CSharpFormattingOptionsContainer(GlobalOptions.OptionsContainer) {
					DefaultText = StringParser.Parse("${res:CSharpBinding.Formatting.SolutionOptionReference}")
				});
			SolutionOptions.FormattingPolicyUpdated += OnFormattingPolicyUpdated;
			SolutionOptions.Load();
		}
Exemplo n.º 14
0
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			taskView.ClearTasks();
		}
Exemplo n.º 15
0
		static void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			RecentOpen.AddLastProject(e.Solution.FileName);
		}
Exemplo n.º 16
0
 void OnSettingsChanged(object sender, SolutionEventArgs e)
 {
     if (SettingsChanged != null) {
         SettingsChanged(this, new EventArgs());
     }
 }
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			RunPackageInitializationScripts(e.Solution);
		}
Exemplo n.º 18
0
 void IProjectServiceRaiseEvents.RaiseSolutionCreated(SolutionEventArgs e)
 {
     SolutionCreated(this, e);
 }
Exemplo n.º 19
0
 void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
 {
     this.LoadSolution(e.Solution);
 }
Exemplo n.º 20
0
		private void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			useCurrentLang.Visible = true;
		}
Exemplo n.º 21
0
 void ProjectServiceSolutionPreferencesSaving(object sender, SolutionEventArgs e)
 {
     projectBrowserPanel.StoreViewState(e.Solution.Preferences.Properties);
 }
Exemplo n.º 22
0
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			foreach (MessageViewCategory category in messageCategories) {
				category.ClearText();
			}
		}
Exemplo n.º 23
0
 void OnSolutionOpen(object sender, SolutionEventArgs e)
 {
     errors.Clear();
     MenuService.UpdateText(toolBar.Items);
 }
		static void SolutionClosed(object sender, SolutionEventArgs e)
		{
			SolutionOptions = null;
			projectOptions.Clear();
		}
Exemplo n.º 25
0
		static void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			var solutionCodeCoverageResults = new SolutionCodeCoverageResults(e.Solution);
			foreach (CodeCoverageResults results in solutionCodeCoverageResults.GetCodeCoverageResultsForAllProjects()) {
				ShowResults(results);
			}
		}
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			foreach (IProject project in e.Solution.Projects.OfType<MSBuildBasedProject>()) {
				CreateTypeScriptContextIfProjectHasTypeScriptFiles(project);
			}
		}
Exemplo n.º 27
0
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			LoggingService.Debug("SolutionLoaded.");
			AddSolutionToPad(e.Solution);
		}
Exemplo n.º 28
0
		void ProjectServiceSolutionPreferencesSaving(object sender, SolutionEventArgs e)
		{
			projectBrowserPanel.StoreViewState(e.Solution.Preferences.Properties);
		}
Exemplo n.º 29
0
		static void OnSolutionClosing(SolutionEventArgs e)
		{
			if (SolutionClosing != null) {
				SolutionClosing(null, e);
			}
		}
Exemplo n.º 30
0
		void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			this.LoadSolution(e.Solution);
		}
Exemplo n.º 31
0
		internal static void OnSolutionCreated(SolutionEventArgs e)
		{
			if (SolutionCreated != null) {
				SolutionCreated(null, e);
			}
		}
Exemplo n.º 32
0
		void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			projectBrowserPanel.ViewSolution(e.Solution);
			projectBrowserPanel.ReadViewState(e.Solution.Preferences.Properties);
		}