Exemplo n.º 1
0
    public MainForm()
    {
      InitializeComponent();

      m_engine = new Engine(canvas, typeof (LevelOne));

      FormClosing += (o, e) => m_engine.Stop();

      m_engine.Start();
    }
Exemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

             // timer1.Tick += button1_Click;
            //
              m_engine = new Engine(canvas, typeof (LevelOne));

              FormClosing += (o, e) => m_engine.Stop();

              m_engine.Start();
        }