コード例 #1
0
        public void SaveScore(string playerName)
        {
            ScoresTable.Add(new Player(playerName, Score));
            var sr = new System.IO.StreamWriter(ScoresTablePath);

            ScoresTable.ForEach(player => sr.WriteLine(player));
            sr.Close();
        }
コード例 #2
0
        //Otworzenie Tabeli wyników
        private void scoreTableOpen(object sender, EventArgs e)
        {
            ScoresTable scores = new ScoresTable();

            scores.ShowDialog();
        }