Esempio n. 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);
                }
            }
        }
Esempio n. 2
0
 protected void WithTrackSelection(DatabaseTrackListModel model, TrackRangeHandler handler)
 {
     WithTrackSelection(model, model.Selection, handler);
 }
Esempio n. 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);
                }
            }
        }
Esempio n. 4
0
 protected void WithTrackSelection (DatabaseTrackListModel model, TrackRangeHandler handler)
 {
     WithTrackSelection (model, model.Selection, handler);
 }