Пример #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));
 }
Пример #2
0
 private void MergeSort_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.MergeSort(defaultSortList, pauseMillionSeconds));
 }
Пример #3
0
 private void QuickSortUseThreads_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.QuickSortUseThreads(quickSortUseThreadsList, pauseMillionSeconds));
 }
Пример #4
0
 private void BubbleSort_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.BubbleSort(bubbleSortList, pauseMillionSeconds));
 }
Пример #5
0
 private void SelectSort_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.SelectSort(selectSortList, pauseMillionSeconds));
 }
Пример #6
0
 private void SortDirect_Click(object sender, RoutedEventArgs e)
 {
     Task.Run(() => SortClass.DirectInsertSort(insertSortList, pauseMillionSeconds));
 }