Пример #1
0
        public void resetForm()
        {
            FrmGame objGame = new FrmGame();

            this.Dispose();
            objGame.Show();
        }
Пример #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();
        }
Пример #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();
        }
Пример #4
0
        private void btnContinue_Click(object sender, EventArgs e)
        {
            FrmGame ContinueGame = new FrmGame();

            ContinueGame.Show();
        }