private void Button_BatchRun(object sender, RoutedEventArgs e) { var x = new FilterSharp.ViewModel.ParticleFilterSharpViewModel(100, Tuple.Create(0, 0), Tuple.Create(0, 0)); var dt = new DateTime(1000000000000000); x.BatchRun(SignalGenerator.GetPeriodic(dt, 100).Select(_ => new KeyValuePair <DateTime, Point>(_.Key, new Point(0, _.Value))), 100, Tuple.Create(-10, 10)); this.DataContext = x; }