protected void WithTrackSelection(DatabaseTrackListModel model, TrackRangeHandler handler) { Selection selection = model.Selection; if (selection.Count == 0) { return; } lock (model) { foreach (RangeCollection.Range range in selection.Ranges) { handler(model, range); } } }
protected void WithTrackSelection(DatabaseTrackListModel model, TrackRangeHandler handler) { WithTrackSelection(model, model.Selection, handler); }
protected void WithTrackSelection (DatabaseTrackListModel model, Selection selection, TrackRangeHandler handler) { if (selection.Count == 0) return; lock (model) { foreach (RangeCollection.Range range in selection.Ranges) { handler (model, range); } } }
protected void WithTrackSelection (DatabaseTrackListModel model, TrackRangeHandler handler) { WithTrackSelection (model, model.Selection, handler); }