Пример #1
0
        /// <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();
            }
        }
Пример #2
0
 // 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();
 }
 /// <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();
     }
 }