コード例 #1
0
		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
ファイル: ProjectService.cs プロジェクト: carlhuth/GenXSource
 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
ファイル: ProjectService.cs プロジェクト: carlhuth/GenXSource
 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
ファイル: TaskListPad.cs プロジェクト: Paccc/SharpDevelop
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			tasks.Clear();
		}
コード例 #7
0
		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
ファイル: ProjectService.cs プロジェクト: RHE24/SharpDevelop
		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
ファイル: ErrorListPad.cs プロジェクト: lisiynos/pascalabcnet
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			taskView.ClearTasks();
			UpdateToolstripStatus();
		}
コード例 #12
0
		void SolutionClosed(object sender, SolutionEventArgs e)
		{
			SolutionOptions.FormattingPolicyUpdated -= OnFormattingPolicyUpdated;
			SolutionOptions = null;
			projectOptions.Clear();
		}
コード例 #13
0
		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
ファイル: TaskListPad.cs プロジェクト: lisiynos/pascalabcnet
		void OnSolutionOpen(object sender, SolutionEventArgs e)
		{
			taskView.ClearTasks();
		}
コード例 #15
0
ファイル: FileService.cs プロジェクト: lisiynos/pascalabcnet
		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
ファイル: CompilerMessageView.cs プロジェクト: Altaxo/Altaxo
		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);
 }
コード例 #24
0
		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);
			}
		}
コード例 #26
0
		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);
		}