/// <summary> /// Reloads the form to default inputs. /// </summary> /// <param name="sender">Any object - UNUSED PARAMETER</param> /// <param name="e">Any event arguments - UNUSED PARAMETER</param> private void ResetButton_Click(object sender, EventArgs e) { DialogResult result = MessageBox.Show("Are you sure you wish to reset the form?", "Reset Results", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { this.Close(); GREETFormattedResults newWindow = new GREETFormattedResults(teams_sheet); newWindow.Show(); } }
// Runs the simulation, and opens up the new results windows private void run_menu_Click(object sender, EventArgs e) { Recalculate(); results_sheet = new GREETFormattedResults(this); results_sheet.Show(); }