예제 #1
0
 // Resets the input sheet back to default inputs
 private void ResetButton_Click(object sender, EventArgs e)
 {
     DialogResult result = MessageBox.Show("Are you sure you wish to reset the form back to default values?", "Reset Input", MessageBoxButtons.YesNo);
     if (result == DialogResult.Yes)
     {
         this.Close();
         TEAMS newWindow = new TEAMS();
         newWindow.Show();
     }
 }
 /// <summary>
 /// The user selects "I Understand" to the copyright notice.
 /// CopyrightForm closes and the main TEAM Module Input form is loaded.
 /// </summary>
 private void I_Understand_Button_Click(object sender, EventArgs e)
 {
     TEAMS t = new TEAMS();
     t.Show();
     this.Close();
 }
예제 #3
0
 // This will make a new input sheet, so you can perform multiple simulations at one time
 private void file_new_menu_Click(object sender, EventArgs e)
 {
     Form f = new TEAMS();
     f.Show();
 }
 /// <summary>
 /// Constructor for the form
 /// </summary>
 /// <param name="sheet">Must be passed a valid TEAMS object to manipulate and work with.</param>
 public GREETFormattedResults(TEAMS sheet)
 {
     // We will use this teams object to pull the GREET values into the TEAMS class, and then reference them here so they can be displayed
     teams_sheet = sheet;
     InitializeComponent();
     setDefaults();
 }