/// <summary> /// Open the 3D engine and the visualizer form /// </summary> private static void StartMethod() { // Open the visualizer form var form = new Simulation3DForm(); Form = form; if (!Properties.Settings.Default.StealthMode) Form.Show(); // Start the 3D engine Engine = new Simulation3DEngine ( form.GetDrawSurface () ); //this worked //EventHandler<EventArgs> EngineStarted = SimEngineStarted; EngineStarted ( Engine, new EventArgs () ); Engine.Run(); }
/// <summary> /// Open the 3D engine and the visualizer form /// </summary> private static void StartMethod() { // Open the visualizer form var form = new Simulation3DForm(); Form = form; if (!Properties.Settings.Default.StealthMode) { Form.Show(); } // Start the 3D engine Engine = new Simulation3DEngine(form.GetDrawSurface()); //this worked //EventHandler<EventArgs> EngineStarted = SimEngineStarted; EngineStarted(Engine, new EventArgs()); Engine.Run(); }