Exemple #1
0
 protected void WriteList(ManifestData Data, IEnumerable<Element> list, string listName, string itemName)
 {
     Data.Writer.WriteStartElement(listName);
     foreach (var item in list)
         Data.WriteElement(itemName, "name", item.Name);
     Data.Writer.WriteEndElement();
 }
Exemple #2
0
 public override void Write(ManifestData Data)
 {
     Data.WriteElement(xmlName,
         "rasse", Rasse != null ? Rasse.Name : "",
         "bachelor", Bachelor != null ? Bachelor.Name : "",
          "master", Master != null ? Master.Name : ""
          );
 }
Exemple #3
0
 public override void Write(ManifestData Data)
 {
     Data.WriteElement(xmlName, "attribute", Attribute.ToDataString());
 }
Exemple #4
0
 public override void Write(ManifestData Data)
 {
     Data.WriteElement(xmlName,
         "mann", Mann.ToString(),
         "hintergrund", Hintergrund,
         "konfession", Konfession,
         "geburtsort", Geburtsort,
         "vergangenheiten", Vergangenheiten.SumText(", "),
         "augenfarbe", Augenfarbe.ToArgb().ToString("x"),
         "hautfarbe", Hautfarbe.ToArgb().ToString("x"),
         "haarfarbe", Haarfarbe.ToArgb().ToString("x"),
         "portrait", Portrait,
         "namen", Names.SumText(", "),
         "radius", Radius,
         "hohe", Hohe,
         "alter", Alter,
         "geburtstag", Geburtstag
         );
 }