private void button1_Click(object sender, EventArgs e)
 {
     //check if required fields have something in them
     //(, , dateTimePicker1.Value, textBox4.Text, int.Parse(textBox5.Text), int.Parse(textBox6.Text));
     if (textBox1.Text.Any())
     {
         if (textBox2.Text.Any())
         {
             if (comboBox1.SelectedIndex != -1)
             {
                 if (textBox4.Text.Any())
                 {
                     if (textBox6.Text.Any())
                     {
                         //modify the Tournaments values after an are you sure dialog box
                         a.setName(textBox1.Text);
                         a.setGame(textBox2.Text);
                         a.setStyle(comboBox1.SelectedIndex);
                         a.setDate(dateTimePicker1.Value);
                         a.setLocation(textBox4.Text);
                         a.setEntry(int.Parse(textBox5.Text));
                         a.setMaxEntrants(int.Parse(textBox6.Text));
                         a.setFlag();
                         this.Close();
                     }
                     else
                     {
                         label8.Text = "Please give a Max Entrant cap.";
                     }
                 }
                 else
                 {
                     label8.Text = "Please set a location.";
                 }
             }
             else
             {
                 label8.Text = "Please select a bracket type.";
             }
         }
         else
         {
             label8.Text = "No game selected.";
         }
     }
     else
     {
         label8.Text = "You need to name the event.";
     }
 }