private void NewSim_Click(object sender, RoutedEventArgs e)
        {
            SimulationWindow new_sim = new SimulationWindow();

            new_sim.Show();
            this.Close();
        }
Beispiel #2
0
 public TimeFrameManager(double deltaTime, Canvas canvas, Layer layer, SimulationWindow simulationWindow)
 {
     this.deltaTime        = deltaTime;
     this.canvas           = canvas;
     this.layer            = layer;
     this.simulationWindow = simulationWindow;
     particles             = new List <Particle>();
     renderThread          = new Thread(CreateFrame);
 }