示例#1
0
文件: GUI.cs 项目: hergin/SortingOOP
        private void mergeSortMenuClicked(object sender, EventArgs e)
        {
            clearOldStuff();
            NumberSwapListener old = theAlgorithm.getNumberSwapListener();

            theAlgorithm = new MergeSort();
            theAlgorithm.setNumberSwapListener(old);
            initializeGUI();
        }
示例#2
0
 public void setNumberSwapListener(NumberSwapListener n)
 {
     this.numberSwapListener = n;
 }
示例#3
0
 public void setNumberSwapListener(NumberSwapListener n)
 {
     this.numberSwapListener = n;
 }