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