/// <summary> /// Compiles the child tasks. /// </summary> /// <param name="taskUpdatesQueryResult">The task updates query result.</param> /// <param name="tfsUrlPath">The TFS URL path.</param> /// <param name="projectName">Name of the project.</param> /// <param name="workItem">The work item.</param> /// <returns> /// ChildItem Collection /// </returns> public ChildItemCollection CompileChildTasks(QueryResult taskUpdatesQueryResult, string tfsUrlPath, string projectName, Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem parentWorkItem) { ChildItemCollection childItemCollection = new ChildItemCollection(); foreach (var workItemNode in taskUpdatesQueryResult.Result) { if (workItemNode.Children != null && workItemNode.Children.Count > 0) { foreach (WorkItemNode childWorkItemNode in workItemNode.Children) { Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem workItem = childWorkItemNode.Item; if (Convert.ToString(workItemNode.Item.Fields[TFSLiterals.AssignedTo].Value) == Convert.ToString(workItem.Fields[TFSLiterals.AssignedTo].Value)) { ChildItem childItem = GetChildItem(tfsUrlPath, projectName, workItem); childItemCollection.ChildItems.Add(childItem); } } } } //// if we search only the Tasks it should return the same task as child item with detail info. if (parentWorkItem != null && parentWorkItem.Type != null && parentWorkItem.Type.Name == "Task") { ChildItem childItem = GetChildItem(tfsUrlPath, projectName, parentWorkItem); childItemCollection.ChildItems.Add(childItem); } return(childItemCollection); }
public ProfileModel() { _invalidFileNameChars = Path.GetInvalidFileNameChars(); _profileBinds = new List <KeybindModel>(); Layers = new ChildItemCollection <ProfileModel, LayerModel>(this); OnProfileUpdatedEvent += OnOnProfileUpdatedEvent; }
public ChildItemCollection GetListOfWorkItems(string tfsUrlPath, string projectName, string[] workItemIds) { this.Connect(tfsUrlPath, projectName); QueryResult result = server.Execute(QueryStore.GetListOfWorkItemsQuery(workItemIds), null, false); ChildItemCollection ChildItemCollection = reportEngine.CompileListOfWorkItems(tfsUrlPath, projectName, result); return(ChildItemCollection); }
public ChildItemCollection GetChildTasksDetails(string tfsUrlPath, string projectName, string parentId) { this.Connect(tfsUrlPath, projectName); QueryResult result = server.Execute(QueryStore.GetChildTasksQuery(parentId), null, false); Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem workItem = server.GetWorkItem(Convert.ToInt32(parentId)); ChildItemCollection ChildItemCollection = reportEngine.CompileChildTasks(result, tfsUrlPath, projectName, workItem); return(ChildItemCollection); }
public LayerModel() { Children = new ChildItemCollection <LayerModel, LayerModel>(this); var model = Properties as KeyboardPropertiesModel; if (model != null) { GifImage = new GifImage(model.GifFile); } }
public LayerModel() { Children = new ChildItemCollection <LayerModel, LayerModel>(this); TweenModel = new TweenModel(this); RenderAllowed = true; var model = Properties as KeyboardPropertiesModel; if (model != null) { GifImage = new GifImage(model.GifFile, Properties.AnimationSpeed); } }
/// <summary> /// Compiles the list of work items. /// </summary> /// <param name="tfsUrlPath">The TFS URL path.</param> /// <param name="projectName">Name of the project.</param> /// <param name="queryResult">The query result.</param> /// <returns>Child Item Collection</returns> public ChildItemCollection CompileListOfWorkItems(string tfsUrlPath, string projectName, QueryResult queryResult) { ChildItemCollection childItemCollection = new ChildItemCollection(); foreach (var workItemNode in queryResult.Result) { foreach (WorkItemNode childWorkItemNode in workItemNode.Children) { Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem workItem = childWorkItemNode.Item; ChildItem childItem = GetChildItem(tfsUrlPath, projectName, workItem); childItemCollection.ChildItems.Add(childItem); } } return(childItemCollection); }
public ProfileModel() { Layers = new ChildItemCollection <ProfileModel, LayerModel>(this); DrawingVisual = new DrawingVisual(); }
public Category() { _subCategories = new ChildItemCollection <Category, Category>(this); }
public LayerModel() { Children = new ChildItemCollection <LayerModel, LayerModel>(this); }
public ProfileModel() { Layers = new ChildItemCollection<ProfileModel, LayerModel>(this); DrawingVisual = new DrawingVisual(); }
public ProfileModel() { _invalidFileNameChars = Path.GetInvalidFileNameChars(); Layers = new ChildItemCollection <ProfileModel, LayerModel>(this); }
public File() { Cards = new ChildItemCollection<File, Card>(this); }