static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Initialize the main menu and run the application. MainMenuForm mainMenuForm = new MainMenuForm(); GlobalContext.MainMenuForm = mainMenuForm; Application.Run(mainMenuForm); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Start to play the main menu sound in loop. AudioContext.menuSoundPlayer.PlayLooping(); // Initialize the main menu and run the application. MainMenuForm mainMenuForm = new MainMenuForm(); GlobalContext.MainMenuForm = mainMenuForm; Application.Run(mainMenuForm); }