Exemplo n.º 1
0
 public static void Sort(int[][] lists, SortAlgorithm alg)
 {
     lists = alg.Sort(lists);
     //gui.form.Invoke((MethodInvoker)(() => gui.Draw(lists)));
 }
Exemplo n.º 2
0
        private void Click_Sort(object sender, EventArgs e)
        {
            SortAlgorithm alg = (SortAlgorithm)algorithm.SelectedItem;

            Task.Factory.StartNew(() => Program.Sort(lists, alg));
        }