示例#1
0
        /// <summary>
        ///     Called when [opened project].
        /// </summary>
        /// <param name="projectName">Name of the project.</param>
        public void OnOpenedProject(string projectName)
        {
            var configurationLayer     = GetConfigurationLayer();
            var startupProjects        = GetStartupProjects();
            var currentStartupProjects = GetCurrentStartupProjects();
            var parsedConfiguration    = GetParsedConfiguration(configurationLayer.ComputedConfig.Startup.Profiles, startupProjects, currentStartupProjects);

            _currentProfile = parsedConfiguration.CurrentProfile;

            OpenedProject?.Invoke(this, new ProjectEventArgs(projectName, configurationLayer.ComputedConfig, parsedConfiguration.Profiles, parsedConfiguration.CurrentProfile));
        }
示例#2
0
 /// <summary>
 ///     Handles the OpenedProject event of the Solution control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="ProjectEventArgs" /> instance containing the event data.</param>
 private void Solution_OpenedProject(object sender, ProjectEventArgs e)
 {
     OpenedProject?.Invoke(this, e);
 }