public BurnReport GetBurnDetails(string tfsUrlPath, string projectName, BurnRetrievalOptions filter, string Query) { this.Connect(tfsUrlPath, projectName); this.PopulateFilterData(filter); QueryResult result = server.Execute(QueryStore.GetBurnQuery(filter, Query), filter.DateRange, true); BurnReport burnReport = reportEngine.CompileBurnData(result, filter, tfsUrlPath, projectName); //Naresh Code ViewType currentViewType = ViewType.Resource; if (burnReport != null) { burnReport.SetView(currentViewType, filter.Team.Members); } foreach (Item item in burnReport.AllItems) { ResourceBurnDetails resBurnDetails = new DataModel.ResourceBurnDetails(); item.GetResourceBDTString(resBurnDetails); burnReport.ResourceBurnDetails.Add(resBurnDetails); } return(burnReport); //End of Naresh Code }
private void PopulateBurnView() { ViewType currentViewType = ViewType.Resource; if (radStoryView.Checked) { currentViewType = ViewType.Story; } if (burnReport != null) { burnReport.SetView(currentViewType, filter.Team.Members); lblBurnSummary.Text = CreateBurnSummary(burnReport); PopulateTree(treeViewBurnDetails, burnReport, true); } }