/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (BomberGame game = new BomberGame()) { game.Run(); } }
private void gameThreadStart(Object o) { Object[] objs = (Object[])o; List<string> AllPlayers = (List<string>)objs[0]; var convID = (int)objs[1]; var game = new BomberGame(); //using (var game = new BomberGame()) //{ //Dispatcher.Invoke(DispatcherPriority.Send, new Action(() => //{ game.GameContentManager = new GameContentManager(Player.Login, AllPlayers, game); game.GameContentManager.Server = Server; game.GameID = convID; this.Game = game; //})); game.Run(); //} }