public MainWindow()
        {
            InitializeComponent();

            PlotTimer = new DispatcherTimer {
                Interval = TimeSpan.FromMilliseconds(1000 / 60)
            };
            PlotTimer.Tick += Timer_Tick;

            RandomTimer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1.5)
            };
            RandomTimer.Tick += RandomTimer_Tick;

            Stopwatch = new Stopwatch();

            Simulator = new PendulumSet();

            Plotter = new PathBuider(Simulator);
        }
Exemple #2
0
 public PathBuider(PendulumSet pendulumSet)
 {
     PendulumSet = pendulumSet;
 }