private void MainForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.A) { MVC.Instance().callAction(1, MainGameControl.ID_KeyRight).ExecuteResult(); } }
public MainForm() { InitializeComponent(); TetrisInstance.model.configure(); TetrisInstance.view.configure(this); TetrisInstance.control.configure(); MVC.Instance().configure(1, new MainGameControl(), new MainGameModel(), new MainGameView(this)); MVC.Instance().callAction(1, MainGameControl.ID_START); }
private void button_debug1_Click(object sender, EventArgs e) { MVC.Instance().callAction(1, MainGameControl.ID_STOP).ExecuteResult(); }