public KNXDigitalAdjustment ToKnx()
        {
            var knx = new KNXDigitalAdjustment();
            base.ToKnx(knx);

            knx.ReadAddressId = this.ReadAddressId;
            knx.WriteAddressIds = this.WriteAddressIds;

            knx.LeftImage = this.LeftImage;
            knx.RightImage = this.RightImage;
            knx.DigitalNumber = (int)this.DigitalNumber;
            knx.MaxValue = this.MaxValue;
            knx.MinValue = this.MinValue;
            knx.Unit = (int)this.Unit;

            return knx;
        }
        public DigitalAdjustmentNode(KNXDigitalAdjustment knx)
            : base(knx)
        {
            this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxDigitalAdjustment;

            this.ReadAddressId = knx.ReadAddressId ?? new Dictionary<string, KNXSelectedAddress>();
            this.WriteAddressIds = knx.WriteAddressIds ?? new Dictionary<string, KNXSelectedAddress>();

            this.LeftImage = knx.LeftImage;
            this.RightImage = knx.RightImage;
            this.DigitalNumber = (KNXDigitalAdjustment.EDigitalNumber)Enum.ToObject(typeof(KNXDigitalAdjustment.EDigitalNumber), knx.DigitalNumber);
            this.MaxValue = knx.MaxValue;
            this.MinValue = knx.MinValue;
            this.Unit = (EMeasurementUnit)Enum.ToObject(typeof(EMeasurementUnit), knx.Unit);
        }