예제 #1
0
        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();
        }
예제 #2
0
        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();
        }