示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ConexionSQL    c          = new ConexionSQL();
            BuscarUsuarios b          = new BuscarUsuarios();
            DataTable      resultados = b.Buscar(c, this.textBoxApellido.Text, this.textBoxDireccion.Text, this.textBoxLocalidad.Text, this.textBoxNumero.Text, this.textBoxPais.Text, this.textBoxPiso.Text, this.textBoxMail.Text, this.textBoxNombre.Text, this.textBoxNumeroDOC.Text, this.textBoxTelefono.Text, this.textBoxTipoDOC.Text, this.textBoxUsuario.Text, this.hotelid);

            dataGridView1.DataSource = resultados;
        }
示例#2
0
        public void Usuarios_Load(object sender, EventArgs e)
        {
            ConexionSQL    c          = new ConexionSQL();
            BuscarUsuarios b          = new BuscarUsuarios();
            DataTable      resultados = b.BusquedaInicial(c, hotelid);

            //
            this.labelHotel.Text = hotelnombre;

            dataGridView1.DataSource = resultados;
        }