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); }
public Fridge(string name, ILampable currentLamp) : base(name) { CurrentLamp = currentLamp; }