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)); }
private void QuickSortUseThreads_Click(object sender, RoutedEventArgs e) { Task.Run(() => SortClass.QuickSortUseThreads(quickSortUseThreadsList, pauseMillionSeconds)); }
private void BubbleSort_Click(object sender, RoutedEventArgs e) { Task.Run(() => SortClass.BubbleSort(bubbleSortList, pauseMillionSeconds)); }
private void SelectSort_Click(object sender, RoutedEventArgs e) { Task.Run(() => SortClass.SelectSort(selectSortList, pauseMillionSeconds)); }
private void SortDirect_Click(object sender, RoutedEventArgs e) { Task.Run(() => SortClass.DirectInsertSort(insertSortList, pauseMillionSeconds)); }