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");
			}
		}
Пример #2
0
 static void OnSolutionClosing(SolutionEventArgs e)
 {
     if (SolutionClosing != null)
     {
         SolutionClosing(null, e);
     }
 }
Пример #3
0
 internal static void OnSolutionCreated(SolutionEventArgs e)
 {
     if (SolutionCreated != null)
     {
         SolutionCreated(null, e);
     }
 }
Пример #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);
     }
 }
Пример #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}")
				});
		}
Пример #8
0
		static void OnSolutionSaved(SolutionEventArgs e)
		{
			if (SolutionSaved != null) {
				SolutionSaved(null, e);
			}
		}
Пример #9
0
		void IProjectServiceRaiseEvents.RaiseSolutionCreated(SolutionEventArgs e)
		{
			SolutionCreated(this, e);
		}
Пример #10
0
 void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
 {
     projectBrowserPanel.ViewSolution(e.Solution);
     projectBrowserPanel.ReadViewState(e.Solution.Preferences.Properties);
 }
Пример #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();
		}
Пример #14
0
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			taskView.ClearTasks();
		}
Пример #15
0
		static void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			RecentOpen.AddLastProject(e.Solution.FileName);
		}
Пример #16
0
 void OnSettingsChanged(object sender, SolutionEventArgs e)
 {
     if (SettingsChanged != null) {
         SettingsChanged(this, new EventArgs());
     }
 }
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			RunPackageInitializationScripts(e.Solution);
		}
Пример #18
0
 void IProjectServiceRaiseEvents.RaiseSolutionCreated(SolutionEventArgs e)
 {
     SolutionCreated(this, e);
 }
Пример #19
0
 void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
 {
     this.LoadSolution(e.Solution);
 }
Пример #20
0
		private void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			useCurrentLang.Visible = true;
		}
Пример #21
0
 void ProjectServiceSolutionPreferencesSaving(object sender, SolutionEventArgs e)
 {
     projectBrowserPanel.StoreViewState(e.Solution.Preferences.Properties);
 }
Пример #22
0
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			foreach (MessageViewCategory category in messageCategories) {
				category.ClearText();
			}
		}
Пример #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();
		}
Пример #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);
			}
		}
Пример #27
0
		void SolutionLoaded(object sender, SolutionEventArgs e)
		{
			LoggingService.Debug("SolutionLoaded.");
			AddSolutionToPad(e.Solution);
		}
Пример #28
0
		void ProjectServiceSolutionPreferencesSaving(object sender, SolutionEventArgs e)
		{
			projectBrowserPanel.StoreViewState(e.Solution.Preferences.Properties);
		}
Пример #29
0
		static void OnSolutionClosing(SolutionEventArgs e)
		{
			if (SolutionClosing != null) {
				SolutionClosing(null, e);
			}
		}
Пример #30
0
		void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			this.LoadSolution(e.Solution);
		}
Пример #31
0
		internal static void OnSolutionCreated(SolutionEventArgs e)
		{
			if (SolutionCreated != null) {
				SolutionCreated(null, e);
			}
		}
Пример #32
0
		void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e)
		{
			projectBrowserPanel.ViewSolution(e.Solution);
			projectBrowserPanel.ReadViewState(e.Solution.Preferences.Properties);
		}