Example #1
0
        private void frmMain_Activated(object sender, EventArgs e)
        {
            game2048 game2048 = new game2048();

            game2048.StartPosition = FormStartPosition.CenterScreen;
            game2048.Show();
            game2048.Focus();
        }
Example #2
0
        private static void close()
        {
            if (game2048 != null)
            {
                InfoManager.addLine("Closing: 2048");

                game2048.Close();
                game2048 = null;

                InfoManager.clearLine();
            }
        }
Example #3
0
        public static void load(string game)
        {
            close();

            switch (game)
            {
            case "2048":
                game2048 = new game2048();
                game2048.StartPosition = FormStartPosition.CenterScreen;
                game2048.background    = false;
                game2048.Show();
                break;
            }
        }