protected override void AttachCore()
 {
     Test.Attach();
     if (Test.Value)
     {
         True.Attach();
     }
     else
     {
         False.Attach();
     }
 }
        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);
        }
Exemple #3
0
        internal NotifyValue(INotifyExpression <T> expression)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

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