private void frmMain_Activated(object sender, EventArgs e) { game2048 game2048 = new game2048(); game2048.StartPosition = FormStartPosition.CenterScreen; game2048.Show(); game2048.Focus(); }
public static void load(string game) { close(); switch (game) { case "2048": game2048 = new game2048(); game2048.StartPosition = FormStartPosition.CenterScreen; game2048.background = false; game2048.Show(); break; } }