private void button9_Click(object sender, EventArgs e) { be.Truco truco = trucoServices.TrucoCantable(); frmValeCuatro = new frmTruco(truco.reCantar.reCantar, partida.Turno.Jugador, false); frmValeCuatro.FormClosing += FrmValeCuatroTruco_closing; frmValeCuatro.ShowDialog(); }
// cantar truco private void button2_Click(object sender, EventArgs e) { be.Truco truco = trucoServices.TrucoCantable(); frmTruco = new frmTruco(truco, partida.Turno.Jugador, true); frmTruco.FormClosing += FrmTruco_closing; frmTruco.ShowDialog(); }
private void button8_Click(object sender, EventArgs e) { be.Truco truco = trucoServices.TrucoCantable(); frmReTruco = new frmTruco(truco.reCantar, partida.Turno.Jugador, true); frmReTruco.FormClosing += FrmReTrucoBtn_closing; frmReTruco.ShowDialog(); button8.Enabled = false; button9.Enabled = true; }
private void FrmReTrucoBtn_closing(object sender, FormClosingEventArgs e) { be.Truco truco = trucoServices.TrucoCantable(); switch (frmReTruco.button) { case "y": partida.Rondas[rondaServices.RondaActual].Valor = truco.reCantar.PuntosQueridos; button9.Enabled = true; button2.Enabled = false; break; case "n": noQuerido(truco.reCantar.PuntosNoQueridos, partida.Turno.Jugador); break; case "rc": frmValeCuatro = new frmTruco(truco.reCantar.reCantar, trucoServices.jugadorContrario(partida.Turno.Jugador, jugadores), false); frmValeCuatro.FormClosing += FrmValeCuatroTrucoBtn_closing; frmValeCuatro.ShowDialog(); break; } }