问题
Using TFS C# API, is it possible to open a label dialog window programmatically? Ideally, I would like to be able to call a label by its name and scope, then have the following pop up: Label Dialog Box
I am using TFS 2013, and my application is a standalone one.
回答1:
You need to work with VersionControlLabelExt class in one VS Addin project. With the VersionControlLabelExt.OpenLabel Method, you will open a new label document window, given the name, scope, and owner of the label.
Check Grant's reply in this link for a quick reference on how to get started:
How can I open the TFS changeset details dialog view using a Visual Studio add-in?
来源:https://stackoverflow.com/questions/33111448/tfs-api-display-label-dialog-programmatically