示例#1
0
 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");
     }
 }
示例#2
0
 private void button3_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = Use.Mostrar(textBox1.Text);
 }