private void SyncCheckedItems() { Cursor = Cursors.WaitCursor; var currentPriority = int.Parse(txtStartPriority.Text); var priorityStep = int.Parse(txtPriorityStep.Text); ITFS tfs = new TFS(txtTFSServerURL.Text, txtDomain.Text, txtTFSUsername.Text, txtTFSPassword.Text); var projectname = ((Microsoft.TeamFoundation.WorkItemTracking.Client.Project) cboTFSProjects.SelectedItem).Name; foreach (var story in from TreeNode node in tvwDetails.Nodes where node.Checked select (Story) node.Tag) { story.Priority = currentPriority; tfs.AddPivotalStoryToTFS(story, projectname, ((Node) cboTFSIterations.SelectedItem).Name, ((Node) cboTFSSubPath.SelectedItem).Name, null, true); currentPriority = currentPriority + priorityStep; } Cursor = Cursors.Arrow; }
private void PopulateTfsIterationsCombo(string projectname) { try { ITFS tfs = new TFS(txtTFSServerURL.Text, txtDomain.Text, txtTFSUsername.Text, txtTFSPassword.Text); cboTFSIterations.DataSource = tfs.GetIterationPaths(projectname); cboTFSIterations.DisplayMember = "Name"; } catch (Exception exception) { //LogError(exception); } }