private void SetSortStrategy(SortStrategy sortStrategy)
 {
     if (sortStrategy.Equals(SortStrategy.BUBBLESORT))
     {
         _sortStrategy = new BubbleSort();
     }
     else
     {
         _sortStrategy = new QuickSort();
     }
 }
Esempio n. 2
0
 public void SetSortedStrategy(SortStrategyBase sortStrategy)
 {
     _sortStrategy = sortStrategy;
 }