예제 #1
0
        /// <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);
        }
예제 #2
0
        public ProfileModel()
        {
            _invalidFileNameChars = Path.GetInvalidFileNameChars();
            _profileBinds         = new List <KeybindModel>();

            Layers = new ChildItemCollection <ProfileModel, LayerModel>(this);
            OnProfileUpdatedEvent += OnOnProfileUpdatedEvent;
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        public LayerModel()
        {
            Children = new ChildItemCollection <LayerModel, LayerModel>(this);

            var model = Properties as KeyboardPropertiesModel;

            if (model != null)
            {
                GifImage = new GifImage(model.GifFile);
            }
        }
예제 #6
0
        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);
            }
        }
예제 #7
0
        /// <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);
        }
예제 #8
0
 public ProfileModel()
 {
     Layers        = new ChildItemCollection <ProfileModel, LayerModel>(this);
     DrawingVisual = new DrawingVisual();
 }
 public Category()
 {
     _subCategories = new ChildItemCollection <Category, Category>(this);
 }
예제 #10
0
 public LayerModel()
 {
     Children = new ChildItemCollection <LayerModel, LayerModel>(this);
 }
예제 #11
0
 public ProfileModel()
 {
     Layers = new ChildItemCollection<ProfileModel, LayerModel>(this);
     DrawingVisual = new DrawingVisual();
 }
예제 #12
0
 public ProfileModel()
 {
     _invalidFileNameChars = Path.GetInvalidFileNameChars();
     Layers = new ChildItemCollection <ProfileModel, LayerModel>(this);
 }
예제 #13
0
파일: File.cs 프로젝트: markovcd/Mapper
	    public File()
	    {
	        Cards = new ChildItemCollection<File, Card>(this);
	    }