Example #1
0
 public static void TestSchadenstypen()
 {
     ElementMenge<Schadenstyp> schaden = new ElementMenge<Schadenstyp>(null);
     schaden.Read("../../Test/Xml/Schadenstypen.xml");
     Text t = new Text();
     t.preferedFont = new FontMeasurer("Calibri", 22);
     foreach (var item in schaden.Menge)
     {
         t.addWort(item.Name + ": " + item.Desc, new SolidBrush(item.Color));
         t.addAbsatz();
     }
     t.createPDF("../../Test/Xml/test.pdf");
 }
Example #2
0
        public virtual void IntoText(Text text)
        {
            text.addWort(Name);
            text.addWhitespace(1);
            text.addWort(InstanzNummern + " Instanzen");
            text.addAbsatz();

            text.addRegex("Klassennummer: " + Klasse + "\n");
            text.addRegex("Typnummer: " + Typ + "\n");
            text.addRegex("Packet: " + Packet + "\n");
            text.addAbsatz();

            text.addWort(Desc);
        }