상속: ITicketTarget, IAvailableTicketTypes
예제 #1
0
 private void loadDefaultStates(TfsProject tfsProject)
 {
     workItemStates = new List <WorkItemState>();
     foreach (WorkItemType wit in tfsProject.WorkItemTypes)
     {
         workItemStates.Add(new WorkItemState(wit));
     }
 }
예제 #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>();
 }
예제 #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>();
        }
예제 #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];
                    }
                }
            }
        }
예제 #5
0
 private void loadDefaultStates(TfsProject tfsProject)
 {
     workItemStates = new List<WorkItemState>();
     foreach (WorkItemType wit in tfsProject.WorkItemTypes)
     {
         workItemStates.Add(new WorkItemState(wit));
     }
 }
예제 #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];
             }
         }
     }
 }
예제 #7
0
 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;
     }
 }