Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         if (cnbd.consultar(textBox1, textBox2))
         {
             this.Visible = false;
             f1.Show();
             f1.facturando.Text = textBox1.Text.Trim();
         }
         else
         {
             MessageBox.Show("Este usuario no existe", "Usuario no identificado", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception err_sqlite003)
     {
         Mensaje.Error(err_sqlite003, "82");
     }
 }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (cnd.consultar(textBox1, textBox2))
     {
         Cierre cir = new Cierre();
         cir.Show(this);
     }
     else
     {
         MessageBox.Show("Los datos suministrados no son vĂ¡lidos.Intente de nuevo", "Datos incorrectos", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }