Пример #1
0
        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);
                }
            }
        }
Пример #2
0
 protected void WithTrackSelection(DatabaseTrackListModel model, TrackRangeHandler handler)
 {
     WithTrackSelection(model, model.Selection, handler);
 }
Пример #3
0
        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);
                }
            }
        }
Пример #4
0
 protected void WithTrackSelection (DatabaseTrackListModel model, TrackRangeHandler handler)
 {
     WithTrackSelection (model, model.Selection, handler);
 }