private void buttonModifierAdherent_Click(object sender, EventArgs e) { BDD ModifAdh1 = new BDD(); 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)); ModifAdh1.UpdateAdherent(LAdherent); confModif = new ConfirmModif(); confModif.ShowDialog(); }
private void buttonModifClub_Click(object sender, EventArgs e) { BDD Modifclub1 = new BDD(); Club leClub = new Club(int.Parse(idClub.Text), textBoxModifNameClub.Text, textBoxModifAdresseClub.Text, int.Parse(textBoxModifCPClub.Text), textBoxModifVilleClub.Text, textBoxModifTelClub.Text, textBoxModifMailClub.Text, textBoxModifURLClub.Text); Modifclub1.UpdateClub(leClub); confModif = new ConfirmModif(); confModif.ShowDialog(); }
private void buttonModifEvent_Click(object sender, EventArgs e) { BDD ModifEvent1 = new BDD(); 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)); ModifEvent1.UpdateEvent(LEvent); confModif = new ConfirmModif(); confModif.ShowDialog(); }