private void buttonRestart_Click(object sender, EventArgs e) { Settings Settings = new Settings(); Options.OverallScore = 0; this.Close(); Settings.ShowDialog(); }
private void restartToolStripMenuItem_Click(object sender, EventArgs e) { Settings Settings = new Settings(); //resetting the score, closing current form, opening Settings form, effectively restarting game. Options.OverallScore = 0; this.Close(); Settings.ShowDialog(); }
private void restartToolStripMenuItem_Click(object sender, EventArgs e) { Settings Settings = new Settings(); Options.OverallScore = 0; this.Close(); Settings.ShowDialog(); }