Ejemplo n.º 1
0
 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 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;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }