Пример #1
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="zone"></param>
        protected internal ZoneContainer(RnetZone zone)
            : base(zone)
        {
            Contract.Requires<ArgumentNullException>(zone != null);

            Zone.Devices.CollectionChanged += (s, a) => RaiseCollectionChanged(a);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="zone"></param>
 public Zone(RnetZone zone)
     : base(zone)
 {
     runHandle =
         Zone.Controller[2, 0];
     zoneHandle =
         Zone.Controller[2, 0, Zone.Id, 7];
     powerHandle =
         Zone.Controller[2, 0, Zone.Id, 6];
     volumeHandle =
         Zone.Controller[2, 0, Zone.Id, 1];
     bassHandle =
         Zone.Controller[2, 0, Zone.Id, 0, 0];
     trebleHandle =
         Zone.Controller[2, 0, Zone.Id, 0, 1];
     loudnessHandle =
         Zone.Controller[2, 0, Zone.Id, 0, 2];
     balanceHandle =
         Zone.Controller[2, 0, Zone.Id, 0, 3];
     sourceHandle =
         Zone.Controller[2, 0, Zone.Id, 2];
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="zone"></param>
 protected ZoneBase(RnetZone zone)
     : base(zone)
 {
     Contract.Requires<ArgumentNullException>(zone != null);
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="zone"></param>
 public Zone(RnetZone zone)
     : base(zone)
 {
     Contract.Requires<ArgumentNullException>(zone != null);
 }