Exemplo n.º 1
0
        public override object Copy()
        {
            ImageButtonNode node = base.Copy() as ImageButtonNode;

            node.SetText(node.Title);
            return(node);
        }
Exemplo n.º 2
0
        public override object Clone()
        {
            ImageButtonNode node = base.Clone() as ImageButtonNode;

            node.ReadAddressId = new Dictionary <string, KNXSelectedAddress>();
            foreach (var item in this.ReadAddressId)
            {
                node.ReadAddressId.Add(item.Key, item.Value);
            }
            node.WriteAddressIds = new Dictionary <string, KNXSelectedAddress>();
            foreach (var item in this.WriteAddressIds)
            {
                node.WriteAddressIds.Add(item.Key, item.Value);
            }
            node.ImageOn  = this.ImageOn;
            node.ImageOff = this.ImageOff;

            return(node);
        }