/// <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); }
/// <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]; }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="zone"></param> protected ZoneBase(RnetZone zone) : base(zone) { Contract.Requires<ArgumentNullException>(zone != null); }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="zone"></param> public Zone(RnetZone zone) : base(zone) { Contract.Requires<ArgumentNullException>(zone != null); }