public void Load(ProcessRunConfiguration config)
 {
     this.config         = config;
     argumentsEntry.Text = config.StartArguments;
     workingDir.Folder   = config.StartWorkingDirectory;
     envVars.LoadValues(config.EnvironmentVariables);
     externalConsole.Active = config.ExternalConsole;
     pauseConsole.Active    = config.PauseConsoleOutput;
     UpdateStatus();
 }
Пример #2
0
        public void Load(Project project, AssemblyRunConfiguration config)
        {
            this.config = config;
            if (config.StartAction == AssemblyRunConfiguration.StartActions.Project)
            {
                radioStartProject.Active = true;
            }
            else
            {
                radioStartApp.Active = true;
            }

            appEntry.FileName        = config.StartProgram.ToString();
            appEntry.CurrentFolder   = project.BaseDirectory;
            argumentsEntry.Text      = config.StartArguments;
            workingDir.Folder        = config.StartWorkingDirectory;
            workingDir.CurrentFolder = project.BaseDirectory;
            envVars.LoadValues(config.EnvironmentVariables);
            externalConsole.Active     = config.ExternalConsole;
            pauseConsole.Active        = config.PauseConsoleOutput;
            runtimesCombo.SelectedItem = config.TargetRuntimeId;
            monoSettingsEntry.Text     = config.MonoParameters.GenerateDescription();
            UpdateStatus();
        }