private void btnAgregar_Click(object sender, EventArgs e) { Mascota nuevaMascota = new Mascota { Id = (int)numId.Value, Nombre = tbNombre.Text, Raza = tbRaza.Text, Duenio = (Cliente)cbClientes.SelectedValue }; miDirectorio.AgregarMascota(nuevaMascota); }