Exemple #1
0
 void RaiseOnUIThread()
 {
     if (IsDisposed)
     {
         return;
     }
     if (!CanRaiseBatchedTagsChanged)
     {
         dispatcher.BeginInvoke(new Action(RaiseOnUIThread), DispatcherPriority.Normal);
     }
     else
     {
         List <IMappingSpan> list;
         lock (lockObj) {
             list = new List <IMappingSpan>(batchedTagsChangedList);
             batchedTagsChangedList.Clear();
         }
         BatchedTagsChanged?.Invoke(this, new BatchedTagsChangedEventArgs(list));
     }
 }
Exemple #2
0
 public void RaiseBatchedTagsChanged(object?sender, HexBatchedTagsChangedEventArgs e) => BatchedTagsChanged?.Invoke(sender, e);