static void ProcessFile(Quicksorter <int> quicksorter, string filename)
        {
            string line;

            using (StreamReader srStreamRdr = new StreamReader(filename))
            {
                while ((line = srStreamRdr.ReadLine()) != null)
                {
                    quicksorter.Add(int.Parse(line));
                }
            }
            quicksorter.Sort();
        }
Beispiel #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Quicksorter.QuickSort(toSort, 0, toSort.Length - 1);
     resultListView.ItemsSource = toSort;
 }