Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            tvLivingRoom = new Television("leefkamer");
            radioKitchen = new Radio("keuken");
            lampHallway  = new SmartLamp("gang");

            electricalAppliances = new List <ElectricalAppliance>
            {
                tvLivingRoom,
                radioKitchen,
                lampHallway
            };

            lblTVLivingRoomVolume.Content = tvLivingRoom.CurrentVolume;
            lblRadioKitchenVolume.Content = radioKitchen.CurrentVolume;
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     tvWoonkamer = new Televisie("woonkamer");
     radioKeuken = new Radio("keuken");
     lampGang    = new SmartLamp("gang");
 }