Esempio n. 1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            int index = Convert.ToInt32(ConfigurationManager.AppSettings["game"]);
            IDictionary <int, Game> dictionary = GetGameDictionary();

            Game game = null;

            try
            {
                game = dictionary[index];
                game.Run();
            }
            finally
            {
                if (null != game)
                {
                    game.Dispose();
                }
            }
        }
Esempio n. 2
0
        static void Main()
        {
            int index = Convert.ToInt32(ConfigurationManager.AppSettings["game"]);
            IDictionary <int, Game> dictionary = GetGameDictionary();

            Game game = null;

            try
            {
                game = dictionary[index];
                game.Window.Title   = $"Demo{index}Game";
                game.IsMouseVisible = true;
                game.Run();
            }
            finally
            {
                if (null != game)
                {
                    game.Dispose();
                }
            }
        }