public void DoAdjustment(double milliseconds, AdjustmentSelection selection)
 {
     double adjustInSeconds = milliseconds / 1000.0;
     if (selection == AdjustmentSelection.SelectedLines)
     {               
         var selectedIndices = Window.SubtitleTable.SelectedRows;
         foreach (var index in selectedIndices)
         {
             Window.Subtitle.Paragraphs[(int)index].Adjust(1, adjustInSeconds);
         }
     }
     else
     {
         foreach (var p in Window.Subtitle.Paragraphs)
         {
             p.Adjust(1, adjustInSeconds);
         }
     }
     ReloadDataKeepSelection();   
 }
 public void ShowEarlierOrLater(double adjustMilliseconds, AdjustmentSelection selection)
 {            
     _applyAdjustmentAction.DoAdjustment(adjustMilliseconds, selection);
     _totalAdjustmentMilliseconds += adjustMilliseconds;
     Window.SetTotalAdjustment(_totalAdjustmentMilliseconds);
 }
 public void ShowEarlierOrLater(double adjustMilliseconds, AdjustmentSelection selection)
 {
     _applyAdjustmentAction.DoAdjustment(adjustMilliseconds, selection);
     _totalAdjustmentMilliseconds += adjustMilliseconds;
     Window.SetTotalAdjustment(_totalAdjustmentMilliseconds);
 }