private void StrokeService_AddStrokeEvent(object sender, AddStrokeEventArgs e) { if (e.NewStroke == null) { return; } var removedStrokes = strokes.RemoveAll(s => s.Id == e.OldStroke?.Id); if (removedStrokes > 0) { strokes.Add(e.NewStroke); } }
private void StrokesService_AddStrokeEvent(object sender, AddStrokeEventArgs e) { AddStroke(e.NewStroke); }