public static void SetLine(KeyValuePair <object, System.Drawing.Image> item, CreateSubSection section, Dictionary <object, List <PdfPTable> > pdfPTables) { Paragraph elements = new Paragraph(); 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) { elements = FontPolish("Wartość liczbowa"); elements.IndentationLeft = 10f; section.AddText(elements); elements = FontPolish("Godziny przed południem:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 1) { elements = FontPolish("Godziny po południu:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 2) { elements = FontPolish("Wartość procentowa"); elements.IndentationLeft = 10f; section.AddText(elements); elements = FontPolish("Godziny przed południem:"); elements.IndentationLeft = 20f; section.AddText(elements); } if (parkingNumber == 3) { elements = FontPolish("Godziny po południu:"); elements.IndentationLeft = 20f; section.AddText(elements); } section.AddTable(tab); parkingNumber++; } } } }
public static void Set(KeyValuePair <object, System.Drawing.Image> item, CreateSubSection 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++; } } } }