private void btnEstadisticoss_Click(object sender, RoutedEventArgs e) { puntuacion abrir = new puntuacion(); abrir.Show(); this.Close(); }
private void dtgTorneo_SelectionChanged(object sender, SelectionChangedEventArgs e) { puntuacion abrir = new puntuacion(); abrir.Show(); this.Close(); /* if (dtgTorneo.SelectedItem != null) * { * Torneos a = dtgTorneo.SelectedItem as Torneos; * if (a != null) * { * txbEquipo1.Text = a.Equipo1; * txbEquipo2.Text = a.Equipo2; * E1.Text = a.Marcador_1.ToString(); * E2.Text = a.Marcador_2.ToString(); * // txtPuntosMarcador2.Text = a.Marcador_2.ToString(); * } * else * { * TemporarDeporteTipo b = dtgTorneo.SelectedItem as TemporarDeporteTipo; * foreach (var item in manejadorTorneo.Listar) * { * if (b.Id == item.Id.ToString()) * { * // txtPuntosToneroIdentificador.Text = item.Id.ToString(); * txbEquipo1.Text = item.Equipo1; * txbEquipo2.Text = item.Equipo2; * E1.Text = item.Marcador_1.ToString(); * E2.Text = item.Marcador_2.ToString(); * } * } * } * } */ }