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)); } }
public void RaiseBatchedTagsChanged(object?sender, HexBatchedTagsChangedEventArgs e) => BatchedTagsChanged?.Invoke(sender, e);