public DimmerViewModel(IDimmer dimmer) { _dimmer = dimmer; Room = dimmer.Room; Device = dimmer.Device; PowerOn = new DelegateCommand(_ => true, _ => dimmer.On()); PowerOff = new DelegateCommand(_ => true, _ => dimmer.Off()); }
public Breather(IDimmer fadeIn, IDimmer fadeOut) { _fadeIn = fadeIn; _fadeOut = fadeOut; }
private void MyStuff(IDimmer x) { x.DimmingLoads[1].FullOff(); }