Example #1
0
        public static void SetLine(KeyValuePair <object, System.Drawing.Image> item, CreateChapter section, Dictionary <object, List <PdfPTable> > pdfPTables)
        {
            int parkingNumber = 0;

            section.AddText(FontPolish("Dokładne Dane:"));
            foreach (var table in pdfPTables)
            {
                if (table.Key == item.Key)
                {
                    foreach (var tab in table.Value)
                    {
                        if (parkingNumber == 0)
                        {
                            section.AddText(FontPolish("Godziny przed południem:"));
                        }

                        if (parkingNumber == 1)
                        {
                            section.AddText(FontPolish("Godziny po południu:"));
                        }

                        if (parkingNumber == 2)
                        {
                            section.AddText(FontPolish("Godziny przed południem:"));
                        }

                        if (parkingNumber == 3)
                        {
                            section.AddText(FontPolish("Godziny po południu:"));
                        }
                        section.AddTable(tab);
                        parkingNumber++;
                    }
                }
            }
        }
Example #2
0
        public static void Set(KeyValuePair <object, System.Drawing.Image> item, CreateChapter chapter, Dictionary <object, List <PdfPTable> > pdfPTables)
        {
            int parkingNumber = 0;

            chapter.AddText(FontPolish("Dokładne Dane:"));
            foreach (var table in pdfPTables)
            {
                if (table.Key == item.Key)
                {
                    foreach (var tab in table.Value)
                    {
                        chapter.AddTable(tab);
                        parkingNumber++;
                    }
                }
            }
        }