Reputation: 5056
Given a WinForms application, a user needs to select a TFS query.
I know how to get the list of queries through the API and that I could create a treeview-based form from scratch.
The TFS-Addin for Excel has a form to select a query:
The TeamProjectPicker can be reused in custom .NET applications, I am curious if something similar exists for the Query picker.
Version info:
Upvotes: 2
Views: 58
Reputation: 30432
There is a TeamProjectPicker Class, so we can use the TeamProjectPicker directly.
But cannot find any QueryPicker related classes from Microsoft.TeamFoundation.Client Namespace.
So, seems it's not reusable, you may have to get the list of queries through the API.
See WorkItemStore.Query Method for details.
You can reference below samples:
Upvotes: 1