コード例 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Cuestionario cue = new Cuestionario();

            MinLabel.Text = cue.BuscarId().ToString();
            MaxLabel.Text = cue.BuscarIdMayor().ToString();
            Refrescar();
            Limpiar();
            LLenarCombo();
        }
コード例 #2
0
        private void freshButton_Click(object sender, EventArgs e)
        {
            Cuestionario cue = new Cuestionario();

            MinLabel.Text = cue.BuscarId().ToString();
            MaxLabel.Text = cue.BuscarIdMayor().ToString();
            Refrescar();
            Limpiar();
            Cronotimer.Stop();

            min = 1;
            seg = 30;
            Cronoslabel.Text    = "00:00";
            Cronoslabel.Visible = false;
            LLenarCombo();
        }
コード例 #3
0
 void Buscar(Cuestionario cue)
 {
     MinLabel.Text = cue.BuscarId().ToString();
     MaxLabel.Text = cue.BuscarIdMayor().ToString();
     if (!string.IsNullOrWhiteSpace(IdTextBox.Text))
     {
         int idD = Utility.ConvierteEntero(IdTextBox.Text);
         if (cue.BuscarPregunta(idD))
         {
             RepuestaLb.Visible = false;
             LlenarCampos(cue);
         }
         else
         {
             Utility.Mensajes(this, 1, "Esta Pregunta ya fue Realizada!");
             Limpiar();
         }
     }
 }
コード例 #4
0
        private void NextButton_Click(object sender, EventArgs e)
        {
            min = 1;
            seg = 30;
            RepuestaLb.Visible = true;
            Cuestionario cue   = new Cuestionario();
            int          id    = cue.BuscarId();
            int          valor = id;

            IdTextBox.Text = valor.ToString();
            try
            {
                Cronotimer.Start();
                Cronoslabel.Visible   = true;
                Cronoslabel.ForeColor = Color.Green;
                Buscar(cue);
            }
            catch (Exception ex)
            {
                Utility.Mensajes(this, 2, "Habla con Jose \n" + ex.Message);
            }
        }