Esempio n. 1
0
 private void buttonCreateTeamsManual_Click(object sender, EventArgs e)
 {
     updateCheckedHumanPlayers();
     core.MatchType = comboBoxMatchType.Text;
     try
     {
         core.checkMatch();
         TeamForm teamForm = new TeamForm(this);
         teamForm.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message);
         return;
     }
 }
Esempio n. 2
0
 private void buttonAuto_Click(object sender, EventArgs e)
 {
     updateCheckedHumanPlayers();
     core.MatchType         = comboBoxMatchType.Text;
     buttonValidate.Enabled = false;
     if (policy == Constants.MatchPolicy.Manual)
     {
         try
         {
             core.checkMatch();
             TeamForm teamForm = new TeamForm(this);
             teamForm.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error: " + ex.Message);
             return;
         }
     }
     else
     {
         try
         {
             core.computeMatchmaking(policy);
             printTeams();
             selectTeams();
             comboBoxWinningTeam.Text    = "Select the Winning Team";
             comboBoxWinningTeam.Enabled = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error: " + ex.Message);
             return;
         }
     }
 }
Esempio n. 3
0
 private void buttonCreateTeamsManual_Click(object sender, EventArgs e)
 {
     updateCheckedHumanPlayers();
     core.MatchType = comboBoxMatchType.Text;
     try
     {
         core.checkMatch();
         TeamForm teamForm = new TeamForm(this);
         teamForm.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message);
         return;
        }
 }
Esempio n. 4
0
 private void buttonAuto_Click(object sender, EventArgs e)
 {
     updateCheckedHumanPlayers();
     core.MatchType = comboBoxMatchType.Text;
     buttonValidate.Enabled = false;
     if (policy == Constants.MatchPolicy.Manual)
     {
         try
         {
             core.checkMatch();
             TeamForm teamForm = new TeamForm(this);
             teamForm.Show();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error: " + ex.Message);
             return;
         }
     }
     else
     {
         try
         {
             core.computeMatchmaking(policy);
             printTeams();
             selectTeams();
             comboBoxWinningTeam.Text = "Select the Winning Team";
             comboBoxWinningTeam.Enabled = true;
         }
         catch (Exception ex)
         {
             MessageBox.Show("Error: " + ex.Message);
             return;
         }
     }
 }