private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         var id_deporte = int.Parse(cmbDeportes.SelectedValue.ToString());
         var gt = new GestorTorneo();
         dgRanking.DataSource = gt.ConsultarRanking(id_deporte);
         dgRanking.DataMember = "RankingFederados";
     }
     catch (Exception ex)
     {
     }
 }
 private void ConsultarRanking_Load(object sender, EventArgs e)
 {
     cargarDeportesTorneo("Federado");
     try
     {
         var id_deporte = int.Parse(cmbDeportes.SelectedValue.ToString());
         var gt = new GestorTorneo();
         int idtenisfederado = 30;
         dgRanking.DataSource = gt.ConsultarRanking(idtenisfederado);
         dgRanking.DataMember = "RankingFederados";
     }
     catch (Exception ex)
     {
     }
 }