예제 #1
0
        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();
        }
예제 #2
0
 public void AddTrackBefore()
 {
     if (!_vm.CurrentTrack.CanInsertTrackBefore())
     {
         return;
     }
     _vm.CurrentTrack.InsertTrackBefore();
     _fileTasks.RedrawWindow();
     PreviousTrack();
 }