public PcGroupAddress(EdGroupAddress row) { this.Selected = false; this.Id = row.Id; this.Name = row.Name; this.KnxAddress = row.KnxAddress; this.Type = row.Type.ToString(); this.DPTName = row.DPTName; //this.IsCommunication = row.IsCommunication; //this.IsRead = row.IsRead; //this.IsWrite = row.IsWrite; this.DefaultValue = row.DefaultValue; this.ReadTimeSpan = row.ReadTimeSpan; this.Actions = ""; if (row.Actions != null) { foreach (DatapointActionNode action in row.Actions) { if (this.Actions.Length > 0) { this.Actions += "/" + action.Name; } else { this.Actions = action.Name; } } } }
public MgGroupAddress(EdGroupAddress address) { this.IsSelected = false; this.Id = address.Id; this.Name = address.Name; this.KnxAddress = address.KnxAddress; this.DPTName = address.DPTName; this.IsCommunication = address.IsCommunication; this.IsRead = address.IsRead; this.IsWrite = address.IsWrite; this.IsTransmit = address.IsTransmit; this.IsUpgrade = address.IsUpgrade; this.Priority = address.Priority; this.DefaultValue = address.DefaultValue; this.ReadTimeSpan = address.ReadTimeSpan; this.Actions = ""; }