Example #1
0
        public void resetForm()
        {
            FrmGame objGame = new FrmGame();

            this.Dispose();
            objGame.Show();
        }
Example #2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            //close add score form
            this.Close();

            //open game main screen
            FrmGame newgame = new FrmGame();

            newgame.Show();
        }
Example #3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            String Strname = txtPlayerName.Text;

            PlayerDB.AddPlayers(file.filename, GameDate.Date, Strname);
            this.Close();

            //reopen game form. Doing this to get a refresh of the file.
            FrmGame newg = new FrmGame();

            newg.Show();
        }
Example #4
0
File: Form1.cs Project: Neacosta/IO
        private void btnContinue_Click(object sender, EventArgs e)
        {
            FrmGame ContinueGame = new FrmGame();

            ContinueGame.Show();
        }