Beispiel #1
0
 public override string WriteToHtml(Person per)
 {
     string aa = "<td>" + "<img src=\"ok.png\" class=\"btn btn-success btn-xs\" onclick=\"editPerson(this)\" alt=\"" + per.Id + "\">" + "<img src=\"remove.png\" class=\"btn btn-danger btn-xs\" onclick=\"deletePerson(this)\" alt = \"" + per.Id + "\">" + "</td>";
     return line = aa + "<td>" + per.Id + "</td>" + "<td>" + per.Name + "</td>" + "</td>" + "<td>" + "</td>" + "<td>" + "</td>" + "<td>" + "</td>" + "<td>" + ((Woman)per).Beauty + "</td>" + "<td>" + ((Woman)per).EyeColor + "</td>" + "<td>" + ((Woman)per).Smile + "</td>" + "<td>W</td>";
 }
Beispiel #2
0
 public override string WriteCSV(Person per)
 {
     return line = Convert.ToString((per.GetType() + "," + per.Id + "," + per.Name + "," + ((Woman)per).Beauty + "," + ((Woman)per).EyeColor + "," + ((Woman)per).Smile));
 }
Beispiel #3
0
 public virtual string WriteToHtml(Person per) { return line; }
Beispiel #4
0
 public virtual string WriteCSV(Person per) { return line; }
Beispiel #5
0
 public override string WriteToHtml(Person per)
 {
     string aa = "<td>" + "<img src=\"ok.png\" class=\"btn btn-success btn-xs\" onclick=\"editPerson(this)\" alt=\"" + per.Id + "\">" + "<img src=\"remove.png\" class=\"btn btn-danger btn-xs\" onclick=\"deletePerson(this)\" alt = \"" + per.Id + "\">" + "</td>";
     return line = aa + "<td>" + per.Id + "</td>" + "<td>" + per.Name + "</td>" + "<td>" + ((Man)per).Strength + "</td>" + "<td>" + ((Man)per).Age + "</td>" + "<td>" + ((Man)per).Stamina + "</td>" + "<td>" + "</td>" + "<td>" + "</td>" + "<td>" + "</td>" + "<td>M</td>";
 }
Beispiel #6
0
 public override string WriteCSV(Person per)
 {
     return line = Convert.ToString((per.GetType() + "," + per.Id + "," + per.Name + "," + ((Man)per).Strength + "," + ((Man)per).Age + "," + ((Man)per).Stamina));
 }