private void NextButton_Click_1(object sender, EventArgs e) { mainform.EnterPlayerName(NameTextBox.Text); if (r != null) { r.AStop(); } File.WriteAllText(MainForm.subfiles + "a.name", NameTextBox.Text); this.Close(); }