private void btnModifier_Click(object sender, EventArgs e) { if (dataGridViewEcole.SelectedRows.Count > 0) { for (int i = 0; i < dataGridViewEcole.SelectedRows.Count; i++) { Form f = new FrmListeEcole ( dataGridViewEcole.SelectedRows[i].DataBoundItem as Ecole, loadData ); this.Hide(); f.Show(); f.WindowState = FormWindowState.Maximized; } } }
private void listeToolStripMenuItem1_Click(object sender, EventArgs e) { Form f = new FrmListeEcole(); f.Show(); }