private void ZoomToCurrentTrackStart() { long selectionLength = CurrentTrack.FadeInEndMarker.Start - CurrentTrack.TrackRegion.Start; SfAudioSelection selection = new SfAudioSelection(CurrentTrack.TrackRegion.Start, selectionLength); _fileTasks.SetSelection(selection); _fileTasks.ZoomToShow(_fileTasks.ExpandSelectionAround(selection, ZoomPadding)); _fileTasks.RedrawWindow(); }
public void AddTrackBefore() { if (!_vm.CurrentTrack.CanInsertTrackBefore()) { return; } _vm.CurrentTrack.InsertTrackBefore(); _fileTasks.RedrawWindow(); PreviousTrack(); }