private bool ChooseProject() { // The domain picker is a user control in the Team Foundation OM // for selecting a Team Foundation Server and Team Project. DomainProjectPicker domainPicker = new DomainProjectPicker(DomainProjectPickerMode.AllowProjectSelect); if (m_tfs != null) { domainPicker.SelectedServer = m_tfs; } if (domainPicker.ShowDialog() == DialogResult.OK) { m_teamProject = null; m_tfs = domainPicker.SelectedServer; ProjectInfo[] projects = domainPicker.SelectedProjects; if (projects.Length > 0) { m_teamProject = projects[0]; } return(true); } else { m_teamProject = null; return(false); } }
private void pickServerButton_Click( object sender, EventArgs e ) { DomainProjectPicker dlg = new DomainProjectPicker( DomainProjectPickerMode.None ); if( dlg.ShowDialog() == DialogResult.OK ) { server = dlg.SelectedServer; Send( TeamServerNameChanged ); } }
private void pickServerButton_Click(object sender, EventArgs e) { DomainProjectPicker dlg = new DomainProjectPicker(DomainProjectPickerMode.None); if (dlg.ShowDialog() == DialogResult.OK) { server = dlg.SelectedServer; Send(TeamServerNameChanged); } }
private void btnSelectTeamProject_Click(object sender, EventArgs e) { DomainProjectPicker domainProjectPicker = new DomainProjectPicker(DomainProjectPickerMode.AllowProjectSelect); if (domainProjectPicker.ShowDialog() == DialogResult.OK) { TFS = domainProjectPicker.SelectedServer; TeamProject = domainProjectPicker.SelectedProjects[0].Name; lblTeamServer.Text = domainProjectPicker.SelectedServer.Uri.AbsoluteUri; lblTeamProject.Text = domainProjectPicker.SelectedProjects[0].Name; } }