private void btnLoadFile_Click(object sender, EventArgs e) { this.menuState = MainMenuOption.LoadGame; formSelectSaveFile file = new formSelectSaveFile(); if (file.ShowDialog() == DialogResult.OK) { this.mainGame.LoadScenarioInInitialization = false; this.mainGame.InitializationFileName = file.SaveFilePath; base.DialogResult = DialogResult.OK; } }
private void pictureBox2_Click(object sender, EventArgs e) { SoundPlayer player = new SoundPlayer("Resources/Start/Open.wav"); player.Play(); this.menuState = MainMenuOption.LoadGame; formSelectSaveFile file = new formSelectSaveFile(); if (file.ShowDialog() == DialogResult.OK) { this.mainGame.LoadScenarioInInitialization = false; this.mainGame.InitializationFileName = file.SaveFilePath; base.DialogResult = DialogResult.OK; } }