private void applyCheatButton_Click(object sender, EventArgs e) { if (Cheats.ApplyCheatCode(cheatTextBox.Text)) { this.Dispose(); } else { invalidErrorLabel.Visible = true; } }