private void loadDefaultStates(TfsProject tfsProject) { workItemStates = new List <WorkItemState>(); foreach (WorkItemType wit in tfsProject.WorkItemTypes) { workItemStates.Add(new WorkItemState(wit)); } }
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>(); }
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>(); }
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 loadDefaultStates(TfsProject tfsProject) { workItemStates = new List<WorkItemState>(); foreach (WorkItemType wit in tfsProject.WorkItemTypes) { workItemStates.Add(new WorkItemState(wit)); } }
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; } }