private void AddWorkItemCategory(object argument) { var category = new WorkItemCategory { Name = "New Category" }; this.SelectedWorkItemCategoryList.Categories.Add(category); this.SelectedWorkItemCategory = category; }
public WorkItemCategoryInfo(string teamProject, WorkItemCategoryList workItemCategoryList, WorkItemCategory workItemCategory) { this.TeamProject = teamProject; this.WorkItemCategoryList = workItemCategoryList; this.WorkItemCategory = workItemCategory; this.WorkItemTypeNames = (this.WorkItemCategory == null || this.WorkItemCategory.WorkItemTypes == null) ? null : string.Join(", ", this.WorkItemCategory.WorkItemTypes.Select(s => s.Name)); }