private void buttonSupprClub_Click(object sender, EventArgs e) { Club leClub = new Club(int.Parse(idClub.Text), textBoxModifNameClub.Text, textBoxModifAdresseClub.Text, int.Parse(textBoxModifCPClub.Text), textBoxModifVilleClub.Text, textBoxModifTelClub.Text, textBoxModifMailClub.Text, textBoxModifURLClub.Text); suppression = new FormSuppression(leClub); suppression.FormClosed += FormSuppr_FormClosed; suppression.ShowDialog(); }
private void buttonSupprAdh_Click(object sender, EventArgs e) { Adherent LAdherent = new Adherent(int.Parse(labelIdAdhModif.Text), textBoxNomAdhModif.Text, textBoxPrenomAdhModif.Text, dateTimePickerNaissanceAdhModif.Value, textBoxSexeAdhModif.Text, textBoxLicenceAdhModif.Text, textBoxAdresseAdhModif.Text, int.Parse(textBoxCPAdhModif.Text), textBoxVilleAdhModif.Text, int.Parse(textBoxCotisationAdhModif.Text), int.Parse(labelIdClubAdh.Text)); suppression = new FormSuppression(LAdherent); suppression.FormClosed += FormSuppr_FormClosed; suppression.ShowDialog(); }
private void buttonSupprimerEvent_Click(object sender, EventArgs e) { Evenement LEvent = new Evenement(int.Parse(labelShowIdEvent.Text), textBoxModifTypeEvent.Text, textBoxModifNomEvent.Text, textBoxModifAdresseEvent.Text, int.Parse(textBoxModifCPEvent.Text), textBoxModifVilleEvent.Text, textBoxModifSiteEvent.Text, dateTimePickerModifDateDebutEvent.Value, dateTimePickerModifDateFinEvent.Value, int.Parse(labelNbParticpant.Text), int.Parse(labelIdClubEvent.Text)); suppression = new FormSuppression(LEvent); suppression.FormClosed += FormSuppr_FormClosed; suppression.ShowDialog(); }