public Scores() { InitializeComponent(); newGame = new NewGame(); allPlayers = new List <Player>(); FolderPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "PlaneCrash"); SerializationPath = Path.Combine(FolderPath, "points.txt"); }
private void BtnOK_Click(object sender, EventArgs e) { player = new Player(txtName.Text, 0, txtCountry.Text); NewGame newGame = new NewGame(); DialogResult dialog = newGame.ShowDialog(); this.Close(); }