/// <summary> /// Called when [closing project]. /// </summary> /// <param name="projectName">Name of the project.</param> public void OnClosingProject(string projectName) { var configurationLayer = GetConfigurationLayer(); var startupProjects = GetStartupProjects(); var currentStartupProjects = GetCurrentStartupProjects(); var parsedConfiguration = GetParsedConfiguration(configurationLayer.ComputedConfig.Startup.Profiles, startupProjects, currentStartupProjects); _currentProfile = parsedConfiguration.CurrentProfile; ClosingProject?.Invoke(this, new ProjectEventArgs(projectName, configurationLayer.ComputedConfig, parsedConfiguration.Profiles, parsedConfiguration.CurrentProfile)); }
/// <summary> /// Handles the ClosingProject event of the Solution control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SolutionEventArgs" /> instance containing the event data.</param> private void Solution_ClosingProject(object sender, ProjectEventArgs e) { ClosingProject?.Invoke(this, e); }