Beispiel #1
0
 private void AddWorkItemTypes()
 {
     foreach (WorkItemType workItemType in _project.WorkItemTypes)
     {
         WorkItemTypes.Add(workItemType);
     }
 }
 private void AddType()
 {
     if (!string.IsNullOrWhiteSpace(TypeToAdd))
     {
         WorkItemTypes.Add(new SettingItemModel()
         {
             Checked = true,
             Name    = TypeToAdd
         });
         TypeToAdd = string.Empty;
     }
 }
        private void FillWorkItemTypeNames(object value)
        {
            WorkItemTypes.Clear();

            if (string.IsNullOrEmpty(Server) || string.IsNullOrEmpty(Project))
            {
                return;
            }

            try
            {
                using (new AutoWaitCursor())
                {
                    m_wizardInfo.WorkItemGenerator = new WorkItemGenerator(Server, Project);

                    foreach (string wiType in m_wizardInfo.WorkItemGenerator.WorkItemTypeNames)
                    {
                        WorkItemTypes.Add(wiType);
                    }
                    SelectedWorkItemType = m_wizardInfo.WorkItemGenerator.DefaultWorkItemTypeName;
                }
                CanNext = ValidatePartState();
            }
            catch (TeamFoundationServerException tfe)
            {
                Warning = tfe.Message;
            }
            catch (SecurityException se)
            {
                Warning = se.Message;
            }
            catch (System.Net.WebException webEx)
            {
                Warning = webEx.Message;
            }
        }