private void button1_Click(object sender, EventArgs e) { if (Use.Autenticar(textBox1.Text, textBox2.Text) > 0) { this.Hide(); Form2 men = new Form2(); men.nivel(Use.nivel(textBox1.Text)); men.Show(); } else { MessageBox.Show("Pasword o Usuario incorrecto"); } }
private void button3_Click(object sender, EventArgs e) { dataGridView1.DataSource = Use.Mostrar(textBox1.Text); }