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)); }
private void MergeSort_Click(object sender, RoutedEventArgs e) { Task.Run(() => SortClass.MergeSort(defaultSortList, pauseMillionSeconds)); }