Пример #1
0
 protected override void Construct()
 {
     foreach (Direction dir in Directions)
     {
         this[dir] = CableProperty.Create(dir, OnPropertyChanged);
     }
 }
Пример #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);
        }