public void resetForm() { FrmGame objGame = new FrmGame(); this.Dispose(); objGame.Show(); }
private void btnCancel_Click(object sender, EventArgs e) { //close add score form this.Close(); //open game main screen FrmGame newgame = new FrmGame(); newgame.Show(); }
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(); }
private void btnContinue_Click(object sender, EventArgs e) { FrmGame ContinueGame = new FrmGame(); ContinueGame.Show(); }