private void Reload()
 {
     dataGridView1.DataSource = MillasDAO.getRecompensas();
     this.textBox2.Text       = MillasDAO.getMillas(this.textDNI.Text);
     UpdateDataGridViewRowColors();
     dataGridView1.Enabled = true;
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (validar())
     {
         return;
     }
     this.textBox2.Text = MillasDAO.getMillas(this.textDNI.Text);
     UpdateDataGridViewRowColors();
     dataGridView1.Enabled = true;
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (validar())
            {
                return;
            }
            List <MillasDTO> listadoMillas = MillasDAO.getListadoMillas(this.textDNI.Text);

            listadoMillas = (from m in listadoMillas
                             orderby m.Fecha
                             select m).ToList();
            dataGridView1.DataSource = listadoMillas;
            this.textBox2.Text       = MillasDAO.getMillas(this.textDNI.Text);
            UpdateDataGridViewRowColors();
        }