Ejemplo n.º 1
0
 protected override void Construct()
 {
     foreach (Direction dir in Directions)
     {
         this[dir] = CableProperty.Create(dir, OnPropertyChanged);
     }
 }
Ejemplo n.º 2
0
        public static CableProperty Create(CableProperties.Direction dir, Action <CableProperties.Direction> onValueChanged)
        {
            CableProperty property = new CableProperty();

            property.Direction      = dir;
            property.OnValueCanged += onValueChanged;

            return(property);
        }