コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public BuildDetailManager(TfsContext tfsContext)
        {
            this.tfsContext = tfsContext;
            settingsService = tfsContext.GetService <SettingsService>();
            tfsContext.ConnectionChanged += TfsContextOnConnectionChanged;
            var isEnabled = settingsService.Get(SettingsKeys.LoadBuildInformationsKey, false);

            SetEnabled(isEnabled);
            UpdateContainingBuilds();
        }
コード例 #2
0
        public void ShowQueryResults(string queryText)
        {
            var workItemControlHost = tfsContext.GetService <IWorkItemControlHost>();

            workItemControlHost.ShowQueryResults(tfsContext.TeamProjectCollection, tfsContext.TfsContextManager.CurrentContext.TeamProjectName, queryText);
        }