private void pictureBoxNuevoTelefono_Click(object sender, EventArgs e) { FormNuevoTelefono f = new FormNuevoTelefono(entitat.id); alta = true; f.ShowDialog(); }
private void listBoxTelefons_DoubleClick(object sender, EventArgs e) { alta = true; try { int id_telef = (int)listBoxTelefons.SelectedValue; FormNuevoTelefono f = new FormNuevoTelefono(id_telef, true); f.Show(); } catch (Exception) { } }