/// <summary>
        ///     Subscribes the listener for.
        /// </summary>
        /// <param name="parameter">The property changed.</param>
        public void SubscribeListenerFor(IReadOnlyParameter parameter)
        {
            this.parameter = parameter;
            this.parameter.ValueChanged += this.OnValueChanged;

            if (this.Next != null)
            {
                this.GenerateNextNode();
            }
        }
Beispiel #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="RootPropertyObserverNode" /> class.
        /// </summary>
        /// <param name="propertyInfo">The property information.</param>
        /// <param name="action">The action.</param>
        /// <param name="owner">The owner.</param>
        public ParameterObserverRootNode(
            PropertyInfo propertyInfo,
            Action action,
//            object owner,
            IReadOnlyParameter parameter)
            : base(propertyInfo, action)
        {
            //         this.Owner = owner;
            this.Parameter = parameter;
        }
Beispiel #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="RootPropertyObserverNode" /> class.
 /// </summary>
 /// <param name="propertyInfo">The property information.</param>
 /// <param name="action">The action.</param>
 /// <param name="owner">The owner.</param>
 public ParameterObserverRootNode(
     PropertyInfo propertyInfo,
     Action <T> action,
     object owner,
     IReadOnlyParameter changed,
     Action <T> getter)
     : base(propertyInfo, action)
 {
     this.Owner   = owner;
     this.Changed = changed;
     this.Getter  = getter;
 }
Beispiel #4
0
 public ParameterObserverSingleNode(Action <T> action, object owner, IReadOnlyParameter <T> parameter)
     : base(action)
 {
     this.Owner     = owner;
     this.Parameter = parameter;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterObserverSingleNode"/> class.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="owner">The owner.</param>
 /// <param name="parameter">The parameter.</param>
 public ParameterObserverSingleNode(Action action, IReadOnlyParameter parameter)
     : base(action)
 {
     this.Parameter = parameter;
 }