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);
		}