Example #1
0
        public override TableRow[] SummaryForProject(Project project)
        {
            if (null == project)
                return new TableRow[0];

            List<TableRow> rows = new List<TableRow>(4);
            rows.Add(HeaderRow("Issues by Status"));
            rows.Add(CreateRow("Status", "Count", true));
            rows.Add(CreateRow("Open", project.OpenIssues().ToString()));
            rows.Add(CreateRow("Resolved", project.ResolvedIssues().ToString()));
            return rows.ToArray<TableRow>();
        }
        protected override List<Series> EvaluateProject(Project project, DateRange range)
        {
            if ((null == project) || (null == range))
                throw new ArgumentNullException();

            List<Series> data = new List<Series>(2);
            data.Add(new Series(OpenSeriesName));
            data[0].Points.AddY(project.OpenIssues());
            data[0].ChartType = SeriesChartType.Column;

            data.Add(new Series(ResolvedSeriesName));
            data[1].Points.AddY(project.ResolvedIssues());
            data[1].ChartType = SeriesChartType.Column;

            return data;
        }