Exemple #1
0
 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();
 }
Exemple #2
0
        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;
        }
Exemple #3
0
 public VMPlayback(VMZone zone)
     : base(zone.TheController)
 {
     Zone    = zone;
     Control = new PlayControl();
 }