Ejemplo n.º 1
0
        public void Create10000PdfFile(CompetitionResult competitionResult)
        {
            for (int i = 1; i <= 10000; i++)
            {
                var pageNumber = i >= competitionResult.total ? competitionResult.page : competitionResult.page;

                var matches = competitionResult.data.Skip(competitionResult.per_page * (pageNumber - 1))
                              .Take(competitionResult.per_page).ToList();

                CreatePdfFile(matches, Path.Combine(relativePath, $"{FileName}_{i}.pdf"));
            }
        }
Ejemplo n.º 2
0
        public void Create10000PdfFile(CompetitionResult competitionResult)
        {
            int pageNumber = 1;

            for (int i = 1; i <= 10000; i++)
            {
                if (pageNumber >= competitionResult.total_pages)
                {
                    pageNumber = 1;
                }
                else
                {
                    pageNumber++;
                }

                var matches = competitionResult.data.Skip(competitionResult.per_page * (pageNumber - 1))
                              .Take(competitionResult.per_page).ToList();

                CreatePdfFile(matches, Path.Combine(relativePath, $"{FileName}_{i}.pdf"));
            }
        }
Ejemplo n.º 3
0
 public void CreatePdfFile(CompetitionResult competitionResult)
 {
     CreatePdfFile(competitionResult.data, Path.Combine(relativePath, $"{FileName}.pdf"));
 }
Ejemplo n.º 4
0
 public void Create10000PdfFile(CompetitionResult competitionResult)
 {
     throw new System.NotImplementedException();
 }