示例#1
0
    public MainForm()
    {
      InitializeComponent();

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

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

      m_engine.Start();
    }
示例#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();
        }