private void IniciarJuegoProfesor_Tick(object sender, EventArgs e) { if (objNegoListener.N_Listener_Comando(1) == "Empezar") // Empezar juego automaticamente por el profesor { IniciarJuegoProfesor.Stop(); objNegoListener.N_Listener_Detener_O_Iniciar(1, ""); // Detiene el inicio del juego por el profesor btn_submit_Click(null, null); } }
private void P_Debate_Main_Load(object sender, EventArgs e) { SetDoubleBuffered(tableLayoutPanel1); SetDoubleBuffered(tableLayoutPanel2); SetDoubleBuffered(tableLayoutPanel11); SetDoubleBuffered(tableLayoutPanel15); SetDoubleBuffered(tableLayoutPanel18); SetDoubleBuffered(tableLayoutPanel20); SetDoubleBuffered(tableLayoutPanel21); this.BackgroundImage = Properties.Resources.Focused_bible_PARTIDA_PROFESOR_01; BackgroundImageLayout = ImageLayout.Stretch; objNegoAlumno.N_EliminarTodo(); // borrar todos los alumnos de la lista listarAlumnos(); timer_ActualizarEstadoLista.Start(); // iniciar actualizar lista cada 2 segundos timer_waitingEverybodyToFinish.Start(); //detecta si todos los alumnos han terminado de jugar tbx_codigoPartida.Text = generarCodigoPartida(); // enviar codigo a base de datos objNegoListener.N_Listener_Detener_O_Iniciar(1, "", tbx_codigoPartida.Text); //actualizar imagen sonido if (objEntidad.enableButtonSound == true) { pbx_Sound.BackgroundImage = Properties.Resources.Sound_MouseLeave_ON; } else { pbx_Sound.BackgroundImage = Properties.Resources.Sound_MouseLeave_OFF; } }