public Device CreateFridge(string name, ILampable lamp)
        {
            Fridge newDevice = new Fridge(name, lamp);

            EventCall(String.Format("{0}:\t \"{1}\" has created.", this.GetType(), name));

            return(newDevice);
        }
Beispiel #2
0
 public Fridge(string name, ILampable currentLamp)
     : base(name)
 {
     CurrentLamp = currentLamp;
 }