Exemplo n.º 1
0
 private void SortArrayUseAllFunction_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.DirectInsertSort(insertSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.ShellSort(shellSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.SelectSort(selectSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.HeapSort(HeapSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.BubbleSort(bubbleSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.QuickSort(quickSortList, pauseMillionSeconds));
     Task.Run(() => SortClass.QuickSortUseThreads(quickSortUseThreadsList, pauseMillionSeconds));
     Task.Run(() => SortClass.MergeSort(defaultSortList, pauseMillionSeconds));
 }
Exemplo n.º 2
0
 private void ShellSort_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.ShellSort(shellSortList, pauseMillionSeconds));
 }