Exemplo n.º 1
0
 private void MenuPrincipal_Load(object sender, EventArgs e)
 {
     // TODO: This line of code loads data into the 'gestionComprasDataSet.Empleados' table. You can move, or remove it, as needed.
     this.empleadosTableAdapter.Fill(this.gestionComprasDataSet.Empleados);
     // TODO: This line of code loads data into the 'gestionComprasDataSet.Marcas' table. You can move, or remove it, as needed.
     this.marcasTableAdapter.Fill(this.gestionComprasDataSet.Marcas);
     TxtCriterio.Focus();
     ejecutarConsulta();
     switch (valorSeleccionado)
     {
     case "Empleados":
         elementosBusqueda.Add(new Elementos()
         {
             Name = "ID_empleado", Value = "ID_empleado"
         });
         break;
     }
     CbxCriterio.DataSource    = elementosBusqueda;
     CbxCriterio.DisplayMember = "Name";
     CbxCriterio.ValueMember   = "Value";
 }
Exemplo n.º 2
0
 private void MenuPrincipal_Activated(object sender, EventArgs e)
 {
     TxtCriterio.Focus();
     ejecutarConsulta();
 }