Esempio n. 1
0
 private void dtBuscar_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataRow dRow = new Negocio.Manejo_de_datos.Presentacion().Select(
             new Negocio.Manejo_de_datos.Presentacion().SelectId(AccionesSistema.ObtenerValorSelecion(dtBuscar, 1).ToString()));
         try
         {
             AccionSeleccionar(dRow);
         }
         catch { }
     }
     catch
     {
         AccionesSistema.RemoverSelecion(dtBuscar);
     }
 }
Esempio n. 2
0
        public void Buscar()
        {
            dtBuscar.Rows.Clear();
            DataTable dTable;
            Image     res;

            if (accion)
            {
                dTable = new Negocio.Manejo_de_datos.Presentacion().Like(txBuscar.Text);
                res    = Resources.Presentacion;
            }
            else
            {
                dTable = new Negocio.Manejo_de_datos.Presentacion().LikeOf(txBuscar.Text);
                res    = Resources.Reciclaje;
            }

            foreach (DataRow row in dTable.Rows)
            {
                dtBuscar.Rows.Add(res, row[1].ToString());
            }
        }