示例#1
0
        private void buttonPrevForm_Click(object sender, EventArgs e)
        {
            PlayerSelect PS = new PlayerSelect();

            this.Hide();
            PS.ShowDialog();
            this.Close();
        }
示例#2
0
        private void buttonNewPlayer_Click(object sender, EventArgs e)
        {
            string Date          = DateTime.Now.ToString("MM/dd/yyyy");
            string NewPlayerName = textBoxNewPlayer.Text;

            if (NewPlayerName == "")
            {
                NewPlayerName = "Guest";
            }

            File.AppendAllText("Scores.CSV",
                               NewPlayerName + "," + "0" + "," + Date + Environment.NewLine);

            PlayerSelect PS = new PlayerSelect();

            this.Hide();
            PS.ShowDialog();
            this.Close();
        }