Example #1
0
 /// <summary> Gets the groups. </summary>
 /// <param name="result"> The result. </param>
 /// <param name="header"> The header. </param>
 /// <param name="topItem"> The top item. </param>
 /// <param name="top"> The top. </param>
 private void GetGroups(ReportStatResult result, string header, int topItem, IEnumerable <ReportStatItem> top)
 {
     if (top.Count() > 0)
     {
         var group = new ReportStatGroup {
             Header = ReportStatGroup.FormatedHeader(header, topItem)
         };
         group.Items.AddRange(top);
         result.Groups.Add(group);
     }
 }
		/// <summary> Gets the groups. </summary>
		/// <param name="result"> The result. </param>
		/// <param name="header"> The header. </param>
		/// <param name="topItem"> The top item. </param>
		/// <param name="top"> The top. </param>
		private void GetGroups(ReportStatResult result, string header, int topItem, IEnumerable<ReportStatItem> top)
		{
			if (top.Count() > 0)
			{
				var group = new ReportStatGroup { Header = ReportStatGroup.FormatedHeader(header, topItem) };
				group.Items.AddRange(top);
				result.Groups.Add(group);
			}
		}