private void CreateSelectProjectControls() { var config = (TfsConfigurer)this.GetExtensionConfigurer(); var ddlTeamProject = new TeamProjectPicker(config); var ddlBuildDefinition = new BuildDefinitionPicker(config); ddlTeamProject.SelectedIndexChanged += (s, e) => { ddlBuildDefinition.TeamProject = ddlTeamProject.SelectedValue; }; this.wizardSteps.TfsBuildDefinition.Controls.Add( new SlimFormField("Team project:", ddlTeamProject), new SlimFormField("Build definition:", ddlBuildDefinition) ); this.WizardStepChange += (s, e) => { if (e.CurrentStep != this.wizardSteps.TfsBuildDefinition) { return; } this.TeamProject = ddlTeamProject.SelectedValue; this.BuildDefinition = ddlBuildDefinition.SelectedValue; }; }
private void CreateSelectProjectControls() { var config = (TfsConfigurer)this.GetExtensionConfigurer(); var ddlTeamProject = new TeamProjectPicker(config); var ddlBuildDefinition = new BuildDefinitionPicker(config); ddlTeamProject.SelectedIndexChanged += (s, e) => { ddlBuildDefinition.TeamProject = ddlTeamProject.SelectedValue; }; this.wizardSteps.TfsBuildDefinition.Controls.Add( new FormFieldGroup("Team Project", "The name of the team project.", false, new StandardFormField("Team Project:", ddlTeamProject) ), new FormFieldGroup("Build Definition", "The name of the build definition used to create a build.", false, new StandardFormField("Build Definition:", ddlBuildDefinition) ) ); this.WizardStepChange += (s, e) => { if (e.CurrentStep != this.wizardSteps.TfsBuildDefinition) return; this.TeamProject = ddlTeamProject.SelectedValue; this.BuildDefinition = ddlBuildDefinition.SelectedValue; }; }
private void CreateSelectProjectControls() { var config = (TfsConfigurer)this.GetExtensionConfigurer(); var ddlTeamProject = new TeamProjectPicker(config); var ddlBuildDefinition = new BuildDefinitionPicker(config); ddlTeamProject.SelectedIndexChanged += (s, e) => { ddlBuildDefinition.TeamProject = ddlTeamProject.SelectedValue; }; this.wizardSteps.TfsBuildDefinition.Controls.Add( new SlimFormField("Team project:", ddlTeamProject), new SlimFormField("Build definition:", ddlBuildDefinition) ); this.WizardStepChange += (s, e) => { if (e.CurrentStep != this.wizardSteps.TfsBuildDefinition) return; this.TeamProject = ddlTeamProject.SelectedValue; this.BuildDefinition = ddlBuildDefinition.SelectedValue; }; }