Пример #1
0
        public void ShowWorkItems()
        {
            if (this.Solution == null)
            {
                return;
            }
            if (!AzureDevOpsService.IsConfigurated())
            {
                MessageBox.ErrorQuery(50, 7, "VSTS", "You must configure VSTS client first", "Ok");
                return;
            }
            string            path                  = Directory.GetParent(this.Solution.Path).FullName;
            List <WorkItemVO> workItems             = AzureDevOpsService.ListWorkItems(path);
            Dictionary <WorkItemVO, string> objects = new Dictionary <WorkItemVO, string>();

            foreach (WorkItemVO workItem in workItems)
            {
                objects.Add(workItem, string.Format("{0} - {1}", workItem.Code, workItem.Name));
            }
            WorkItemVO workitemSelected = WindowManager.ShowDialogObjects <WorkItemVO>("WorkItems", objects);

            this.WorkItem = workitemSelected;
            this.RefreshUI();
        }