コード例 #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));
 }