Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(textBox1.Text))
     {
         MessageBox.Show("Error, debe ingresar una patente");
     }
     else
     {
         funciones existe = new funciones();
         if (existe.noExistePatente(textBox1.Text))
         {
             MessageBox.Show("Error, no existen micros con esa patente");
         }
         else
         {
             Abm_Micro.MicroFormModificacion microMod = new Abm_Micro.MicroFormModificacion();
             microMod.Show();
             this.Hide();
         }
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(textBox1.Text))
     {
         MessageBox.Show("Error, debe ingresar una patente");
     }
     else
     {
         funciones existe = new funciones();
         if (existe.noExistePatente(textBox1.Text))
         {
             MessageBox.Show("Error, no existen micros con esa patente");
         }
         else
         {
             Abm_Micro.MicroFormModificacion microMod = new Abm_Micro.MicroFormModificacion();
             microMod.Show();
             this.Hide();
         }
     }
 }