public TimerButtonNode(KNXTimerButton knx) : base(knx) { this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxTimerButtonType; this.ReadAddressId = knx.ReadAddressId ?? new Dictionary<string, KNXSelectedAddress>(); this.WriteAddressIds = knx.WriteAddressIds ?? new Dictionary<string, KNXSelectedAddress>(); }
public KNXTimerButton ToKnx() { var knx = new KNXTimerButton(); base.ToKnx(knx); knx.ReadAddressId = this.ReadAddressId; knx.WriteAddressIds = this.WriteAddressIds; return knx; }