private void button1_Click(object sender, EventArgs e) { listBox2.Items.Clear(); Sortowanie babelki = new Sortowanie(); babelki.babelki(tablica, ref listBox2); }
private void button2_Click(object sender, EventArgs e) { listBox2.Items.Clear(); Sortowanie selectSor = new Sortowanie(); //selectSor.SelectionSort(tablica); selectSor.Quicksort(tablica, 0, tablica.Length - 1); for (int i = 0; i < tablica.Length; i++) { listBox2.Items.Add(tablica[i]); } }
private void button3_Click(object sender, EventArgs e) { listBox2.Items.Clear(); Sortowanie selectionsort = new Sortowanie(); selectionsort.SelectionSort(tablica); string sorted = ""; foreach (double item in tablica) { sorted = item.ToString(); listBox2.Items.Add(sorted); } // listBox2.Items.Add(sorted); }