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"); } }
static void OnSolutionClosing(SolutionEventArgs e) { if (SolutionClosing != null) { SolutionClosing(null, e); } }
internal static void OnSolutionCreated(SolutionEventArgs e) { if (SolutionCreated != null) { SolutionCreated(null, e); } }
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); } }
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}") }); }
void IProjectServiceRaiseEvents.RaiseSolutionCreated(SolutionEventArgs e) { SolutionCreated(this, e); }
void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e) { projectBrowserPanel.ViewSolution(e.Solution); projectBrowserPanel.ReadViewState(e.Solution.Preferences.Properties); }
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(); }
void OnSolutionOpen(object sender, SolutionEventArgs e) { taskView.ClearTasks(); }
static void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e) { RecentOpen.AddLastProject(e.Solution.FileName); }
void OnSettingsChanged(object sender, SolutionEventArgs e) { if (SettingsChanged != null) { SettingsChanged(this, new EventArgs()); } }
void SolutionLoaded(object sender, SolutionEventArgs e) { RunPackageInitializationScripts(e.Solution); }
void ProjectServiceSolutionLoaded(object sender, SolutionEventArgs e) { this.LoadSolution(e.Solution); }
private void SolutionLoaded(object sender, SolutionEventArgs e) { useCurrentLang.Visible = true; }
void ProjectServiceSolutionPreferencesSaving(object sender, SolutionEventArgs e) { projectBrowserPanel.StoreViewState(e.Solution.Preferences.Properties); }
void SolutionLoaded(object sender, SolutionEventArgs e) { foreach (MessageViewCategory category in messageCategories) { category.ClearText(); } }
void OnSolutionOpen(object sender, SolutionEventArgs e) { errors.Clear(); MenuService.UpdateText(toolBar.Items); }
static void SolutionClosed(object sender, SolutionEventArgs e) { SolutionOptions = null; projectOptions.Clear(); }
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); } }
void SolutionLoaded(object sender, SolutionEventArgs e) { LoggingService.Debug("SolutionLoaded."); AddSolutionToPad(e.Solution); }