Inheritance: ITicketTarget, IAvailableTicketTypes
Exemple #1
0
 private void loadDefaultStates(TfsProject tfsProject)
 {
     workItemStates = new List <WorkItemState>();
     foreach (WorkItemType wit in tfsProject.WorkItemTypes)
     {
         workItemStates.Add(new WorkItemState(wit));
     }
 }
Exemple #2
0
 public TfsUsers(TfsProject tfsProject)
 {
     this.tfsProject = tfsProject;
     defaultAsignee = "";
     failedImpersonations = new HashSet<User>();
     unableToAddTickets = new HashSet<User>();
     var settings = SettingsStore.Load(key);
     settings.TryGetValue(defaultAsigneeKey, out defaultAsignee);
     defaultCreator = "";
     settings.TryGetValue(defaultCreatorKey, out defaultCreator);
     tfsUsers = allTfsUsers(this.tfsProject.Tfs);
     canImpersonate = ableToImpersonate(this.tfsProject.Tfs);
     impersonated_Users = new Dictionary<User, TfsTeamProjectCollection>();
 }
Exemple #3
0
        public TfsUsers(TfsProject tfsProject)
        {
            this.tfsProject      = tfsProject;
            defaultAsignee       = "";
            failedImpersonations = new HashSet <User>();
            unableToAddTickets   = new HashSet <User>();
            var settings = SettingsStore.Load(key);

            settings.TryGetValue(defaultAsigneeKey, out defaultAsignee);
            defaultCreator = "";
            settings.TryGetValue(defaultCreatorKey, out defaultCreator);
            tfsUsers           = allTfsUsers(this.tfsProject.Tfs);
            canImpersonate     = ableToImpersonate(this.tfsProject.Tfs);
            impersonated_Users = new Dictionary <User, TfsTeamProjectCollection>();
        }
Exemple #4
0
        public TfsStateMap(TfsProject tfsProject)
        {
            this.tfsProject = tfsProject;
            loadDefaultStates(this.tfsProject);
            var storedStates = SettingsStore.Load(approved_key);

            if (storedStates.Count > 0)
            {
                foreach (var wis in workItemStates)
                {
                    if (storedStates.ContainsKey(wis.Name))
                    {
                        wis.SelectedApprovedState = storedStates[wis.Name];
                    }
                }
            }
        }
Exemple #5
0
 private void loadDefaultStates(TfsProject tfsProject)
 {
     workItemStates = new List<WorkItemState>();
     foreach (WorkItemType wit in tfsProject.WorkItemTypes)
     {
         workItemStates.Add(new WorkItemState(wit));
     }
 }
Exemple #6
0
 public TfsStateMap(TfsProject tfsProject)
 {
     this.tfsProject = tfsProject;
     loadDefaultStates(this.tfsProject);
     var storedStates = SettingsStore.Load(approved_key);
     if (storedStates.Count > 0)
     {
         foreach (var wis in workItemStates)
         {
             if (storedStates.ContainsKey(wis.Name))
             {
                 wis.SelectedApprovedState = storedStates[wis.Name];
             }
         }
     }
 }
 private void tfsConnect_DoWork(object sender, DoWorkEventArgs arguments)
 {
     try
     {
         var serverDetails = (arguments.Argument as Tuple<string, string>);
         selectedProject = new TfsProject(serverDetails.Item1, serverDetails.Item2);
         arguments.Result = null;
     }
     catch (Exception e)
     {
         arguments.Result = e;
     }
 }