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

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