private void Selector_SelectionChanged(object sender, SelectionChangedEventArgs e) { canvas.Children.Clear(); FractalGenerator gen = selector.SelectedItem as FractalGenerator; //just to be extra safe gen?.Setup(); numLines.Text = canvas.Children.Count.ToString(); }
private void Iterate_Click(object sender, RoutedEventArgs e) { FractalGenerator gen = selector.SelectedItem as FractalGenerator; //just to be extra safe gen?.Iterate(); //want: thread this so that that each line replacement is shown serially numLines.Text = canvas.Children.Count.ToString(); }