protected override void Construct() { foreach (Direction dir in Directions) { this[dir] = CableProperty.Create(dir, OnPropertyChanged); } }
public static CableProperty Create(CableProperties.Direction dir, Action <CableProperties.Direction> onValueChanged) { CableProperty property = new CableProperty(); property.Direction = dir; property.OnValueCanged += onValueChanged; return(property); }