Exemple #1
0
        static void Main(string[] args)
        {
            Headquater hq = new Headquater("RocketFuel");

            Station s1 = new Station(hq, "Herning", Region.Jutland);

            hq.Attach(s1);
            Station s2 = new Station(hq, "Odense", Region.Funen);

            hq.Attach(s2);
            Station s3 = new Station(hq, "Vigersted", Region.Zealand);

            hq.Attach(s3);

            hq.KeroOxygen = 20;

            hq.KeroOxygen = 35;

            hq.KeroOxygen = 32;
        }
Exemple #2
0
 public Station(Headquater headquater, string city, Region region)
 {
     Headquater = headquater;
     City       = city;
     Region     = region;
 }