void lbFunction_SelectedIndexChanged(object sender, RoutedEventArgs e) { CircularFunction f; if ((string)lbFunction.SelectedItem == "Taubin's Heart") { f = CircularFunction.TaubinsHeart; } else if ((string)lbFunction.SelectedItem == "Cardioid") { f = CircularFunction.Cardioid; } else { f = CircularFunction.Lemniskate; } chart.DataSource = FunctionsPointGenerator.GeneratePoints(f); chart.Animate(); }
public PolarLineSeriesControl() { InitializeComponent(); chart.DataSource = FunctionsPointGenerator.GeneratePoints(CircularFunction.Lemniskate); }