//after the number of packs has been entered the player hits this to possibly change settings to their preference private void btnSetup_Click(object sender, EventArgs e) { //opens the options menu as a dialog and allows for the back window to stay up until this one closes OptionsWindow setupForm = new OptionsWindow(); setupForm.ShowDialog(); //after the options window closes hide the main window and show the main calculator screen this.Hide(); MainWindow mainForm = new MainWindow(); mainForm.Show(); }