Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.TextLength > 3)
     {
         MessageBox.Show("Enter 3 characters or less");
     }
     else
     {
         initials = textBox1.Text;
         HighScores highScores = new HighScores(initials, difficulty, totaltime);
         highScores.FormClosed += (s, args) => this.Close();
         this.Hide();
         highScores.Show();
     }
 }