示例#1
0
 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);
 }
示例#2
0
 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);
 }