static void Main(string[] args) { using (MainMenu main = new MainMenu()) { main.ShowDialog(); } if(startgame) using (Game1 game = new Game1(w,h)) { game.Run(); } }
static void Main(string[] args) { using (MainMenu main = new MainMenu()) { main.ShowDialog(); } if(startgame) using (Game1 game = new Game1(w,h)) { game.Run(); } }