コード例 #1
0
 public void AddDecimalNumberListener(DecimalNumberDelegate theDelegate)
 {
     using (TimedLock.Lock(listenerLock))
     {
         DecimalNumberReceived += theDelegate;
     }
 }
コード例 #2
0
 public void RemoveDecimalNumberListener(DecimalNumberDelegate theDelegate)
 {
     using (TimedLock.Lock(listenerLock))
     {
         DecimalNumberReceived -= 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)
     }
 }