Beispiel #1
0
 void IValueProvider.DetachConsumer(IValueConsumer consumer)
 {
     if (this.consumers.Contains(consumer))
     {
         this.consumers.Remove(consumer);
         this.ValueChanged -= consumer.InputValueChanged;
     }
 }
Beispiel #2
0
 void IValueProvider.AttachConsumer(IValueConsumer consumer)
 {
     if (!this.consumers.Contains(consumer))
     {
         this.consumers.Add(consumer);
         this.ValueChanged += consumer.InputValueChanged;
     }
 }