private void timer2Start_Tick(object sender, EventArgs e)
        {
            LoadBar.Stop(); // detener label Esperando
            circularProgressBar.Font = new Font(circularProgressBar.Font.Name, 40f, circularProgressBar.Font.Style, circularProgressBar.Font.Unit);

            if (countDown > 0)
            {
                countDown--;
                circularProgressBar.Text = countDown.ToString();
            }
            else
            {
                timer2Start.Stop();


                ds = objNegoListener.N_Listener_Comando(1);
                dt = ds.Tables[0];

                if (dt.Rows.Count > 0)
                {
                    if (dt.Rows[0]["codigoProfe"].ToString() == tbx_codigoPartida.Text)
                    {
                        this.Hide();
                        P_focusedBible_SOLO_y_PARTIDA soloMain = new P_focusedBible_SOLO_y_PARTIDA(objEntidad, objEntidadAlumno);
                        soloMain.Show();
                    }
                    else
                    {
                        lab_anuncio_1.Text        = "SE ACABA DE QUEDAR FUERA DE LA PARTIDA";
                        lab_anuncio_2.Text        = "SE ACABA DE QUEDAR FUERA DE LA PARTIDA";
                        tbx_codigoPartida.Enabled = false;
                    }
                }
            }
        }
示例#2
0
        private void btn_solo_Click(object sender, EventArgs e)
        {
            objEntidad.solo_O_Partida = "SOLO";

            this.Hide();
            P_focusedBible_SOLO_y_PARTIDA soloMain = new P_focusedBible_SOLO_y_PARTIDA(objEntidad);

            soloMain.Show();
        }