protected override void AttachCore()
 {
     Test.Attach();
     if (Test.Value)
     {
         True.Attach();
     }
     else
     {
         False.Attach();
     }
 }
Example #2
0
        public TaggedObservableValue(INotifyExpression <T> expression, TTag tag)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            Expression = expression;
            Tag        = tag;

            expression.Attach();
            expression.ValueChanged += (o, e) => ValueChanged?.Invoke(this, e);
        }
Example #3
0
        internal NotifyValue(INotifyExpression <T> expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            Expression = expression;
            if (!expression.IsAttached)
            {
                expression.Attach();
            }
            expression.ValueChanged += ExpressionValueChanged;
        }
Example #4
0
 protected override void AttachCore()
 {
     Target.Attach();
 }
Example #5
0
 protected override void AttachCore()
 {
     Left.Attach();
     Right.Attach();
 }