private void Form1_Load(object sender, EventArgs e) { this.BringToFront(); this.Focus(); this.KeyPreview = true; this.KeyDown += new KeyEventHandler(Form1_KeyDown); env = DLL2048.init(); Board = (ObjBox)DLL2048.init_board(env, new List <object>()); redraw_gui(Board); }
private void Form1_Load(object sender, EventArgs e) { this.BringToFront(); this.Focus(); this.KeyPreview = true; this.KeyDown += new KeyEventHandler(Form1_KeyDown); env = DLL2048.init(); Board = (ObjBox) DLL2048.init_board(env, new List<object>()); redraw_gui(Board); }