Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (mascota == null)
     {
         if (txtIDcliente.Text == "")
         {
             MessageBox.Show("Primero debe seleccionar un cliente", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         else
         {
             mascota             = new frmBuscarMascota(int.Parse(txtIDcliente.Text));
             mascota.Owner       = this;
             mascota.FormClosed += new FormClosedEventHandler(MascotaFormClosed);
             mascota.ShowDialog();
         }
     }
 }
Exemple #2
0
 private void MascotaFormClosed(object sender, EventArgs e)
 {
     mascota = null;
 }