private void OnUpdatedLabelAvailable(Label updatedLabel) { var oldLabel = cachedLabels.FirstOrDefault(label => label.Id == updatedLabel.Id); if (oldLabel == null) { return; } cachedLabels.Remove(oldLabel); cachedLabels.Add(updatedLabel); UpdatedLabelAvailable?.Invoke(updatedLabel); }
private void OnUpdatedLabelAvailable(Label label) { UpdatedLabelAvailable?.Invoke(label); }