private void btnaddmember_Click(object sender, EventArgs e) { FrmMembre fm = new FrmMembre(); fm.Show(); this.Hide(); }
private void btnmodifymem_Click(object sender, EventArgs e) { if (guna2DataGridViewEvenement.SelectedRows.Count > 0) { for (int i = 0; i < guna2DataGridViewEvenement.SelectedRows.Count; i++) { FrmMembre fr = new FrmMembre ( guna2DataGridViewEvenement.SelectedRows[i].DataBoundItem as Membre, loadData ); fr.ShowDialog(); } } }