Example #1
0
 public void AddValueListener(WholeNumberDelegate theDelegate)
 {
     using (TimedLock.Lock(listenerLock))
     {
         WholeNumberReceived += theDelegate;
     }
 }
Example #2
0
 public void RemoveValueListener(WholeNumberDelegate theDelegate)
 {
     using (TimedLock.Lock(listenerLock))
     {
         WholeNumberReceived -= theDelegate;
         //SuggestGoingInActive(); // TODO: here or only after certain calls to this method?  get rid of it all together? (ie always keep the same taglist but only use the values we care about...since taglist updates take time)
     }
 }