Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            listBox2.Items.Clear();
            Sortowanie babelki = new Sortowanie();

            babelki.babelki(tablica, ref listBox2);
        }
Esempio n. 2
0
        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]);
            }
        }
Esempio n. 3
0
        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);
        }