public Meldestelle() { foreach (var land in bundesLänder) { var station = new Geburtsstation(land); station.GeburtMelden += GeburtMelden; GeburtAnfrage += station.Geburt; stationen.Add(station); } }
public Meldestelle() { this.geburtenstationen.Add(new Geburtenstation("Wien")); this.geburtenstationen.Add(new Geburtenstation("Niederösterreich")); this.geburtenstationen.Add(new Geburtenstation("Burgenland")); this.geburtenstationen.Add(new Geburtenstation("Oberösterreich")); this.geburtenstationen.Add(new Geburtenstation("Tirol")); this.geburtenstationen.Add(new Geburtenstation("Vorarlberg")); this.geburtenstationen.Add(new Geburtenstation("Salzburg")); this.geburtenstationen.Add(new Geburtenstation("Steiermark")); this.geburtenstationen.Add(new Geburtenstation("Kärnten")); foreach (var item in geburtenstationen) { GebAnfrage += item.Geburt; item.KindGeboren += Geburt; } }