/// <summary> /// Muestra tan solo los clientes con Categoría C. /// Ocurre al hacer clic en rbCatC. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void rbCatC_Click(object sender, EventArgs e) { gridClientes.Rows.Clear(); List <Cliente> lista = GestionCliente.clientesCategoria(new Implementacion.ClienteDTO2(Dominio.Categoria.C)); int n; foreach (Cliente c in lista) { n = gridClientes.Rows.Add(); gridClientes.Rows[n].Cells[0].Value = c.Dni; gridClientes.Rows[n].Cells[1].Value = c.Nombre; gridClientes.Rows[n].Cells[2].Value = c.Telefono; gridClientes.Rows[n].Cells[3].Value = c.Categoria; } }