コード例 #1
0
        private void OnBubbleSort(object sender, RoutedEventArgs e)
        {
            GeneratedArray generatedArray = new GeneratedArray(128);

            CreateBars(generatedArray.array);

            BubbleSort bubbleSort = new BubbleSort(generatedArray.array);

            new AnimationTimer(Render).Start();

            new IteratorTimer(Iterate, bubbleSort).Start();
        }
コード例 #2
0
        private void OnGenerateArrayClick(object sender, RoutedEventArgs e)
        {
            Button clickedButton = (Button)sender;

            generatedArray = new GeneratedArray(100);
        }