DCSIMG
Custom Control - Eran Ruso
Sign in | Join | Help

Browse by Tags

TFS API: Get Project Members
13 September 09 03:22 PM | Eran Ruso | 3 comment(s)
I have been asked to write a few times custom controls that requires me to get the users from the Team Project. The method that does that is very simple, the example in this post takes the members from the project by the “project name” that was passed to it, and adds them to a combobox named cmbUsers. using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.Proxy; using Microsoft.TeamFoundation.Server; public void GetUsers( TeamFoundationServer server, string project) { cmbUsers.Items...
How To Show A Work Item From Custom Control Using API In TFS
05 August 09 07:02 AM | Eran Ruso | with no comments
Yesterday I have created a Custom Control that one of its features is to open a work item for the user to modify. Since it took me some time to understand how to do it I have decided to post a reference for how to do it in an easy way. Here is an example of how to do it: using Microsoft.TeamFoundation.WorkItemTracking.Client; using Microsoft.TeamFoundation.WorkItemTracking.Controls; using Microsoft.TeamFoundation.Client; using Microsoft.VisualStudio.TeamFoundation.WorkItemTracking; private void ShowWorkItem...