private void SetZones() { if (null == TheController.Zones || 0 == TheController.Zones.Length) { Zones = new VMZone[] { new VMZone(this, Zone.Empty, TheController) }; } else { Zones = TheController.Zones.Select(z => new VMZone(this, z, TheController)).ToArray(); } SelectedZone = Zones.FirstOrDefault(); }
public VMVolume(VMZone zoneVM, IController c) : base(c) { ZoneVM = zoneVM; ZoneVM.PropertyChanged += (s, e) => { if (e.PropertyName == GetPropertyName(() => ZoneVM.IsOn)) { Notify(() => IsOn); } }; Minimum = Volume.Min; Maximum = Volume.Max; }
public VMPlayback(VMZone zone) : base(zone.TheController) { Zone = zone; Control = new PlayControl(); }