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 PreviewStop() { _app.DoMenuAndWait("Transport.Stop", false); _fileTasks.SetSelection(_vm.CurrentTrack.GetSelectionWithFades()); }