public MainForm() { InitializeComponent(); m_engine = new Engine(canvas, typeof (LevelOne)); FormClosing += (o, e) => m_engine.Stop(); m_engine.Start(); }
public MainForm() { InitializeComponent(); // timer1.Tick += button1_Click; // m_engine = new Engine(canvas, typeof (LevelOne)); FormClosing += (o, e) => m_engine.Stop(); m_engine.Start(); }