Exemple #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
         {
             Form f = new FormSchoolEdit
                      (
                 dataGridView1.SelectedRows[i].DataBoundItem as School,
                 loadData
                      );
             f.ShowDialog();
         }
     }
 }
Exemple #2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            Form f = new FormSchoolEdit(loadData);

            f.Show();
        }
Exemple #3
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form f = new FormSchoolEdit();

            f.Show();
        }