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(); }
private void OnGenerateArrayClick(object sender, RoutedEventArgs e) { Button clickedButton = (Button)sender; generatedArray = new GeneratedArray(100); }