Beispiel #1
0
        public DimmerViewModel(IDimmer dimmer)
        {
            _dimmer = dimmer;

            Room   = dimmer.Room;
            Device = dimmer.Device;

            PowerOn  = new DelegateCommand(_ => true, _ => dimmer.On());
            PowerOff = new DelegateCommand(_ => true, _ => dimmer.Off());
        }
Beispiel #2
0
 public Breather(IDimmer fadeIn, IDimmer fadeOut)
 {
     _fadeIn = fadeIn;
     _fadeOut = fadeOut;
 }
Beispiel #3
0
 private void MyStuff(IDimmer x)
 {
     x.DimmingLoads[1].FullOff();
 }
Beispiel #4
0
 public Breather(IDimmer fadeIn, IDimmer fadeOut)
 {
     _fadeIn  = fadeIn;
     _fadeOut = fadeOut;
 }