Ejemplo n.º 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 FrmUniversityEdit
                      (
                 dataGridView1.SelectedRows[i].DataBoundItem as University,
                 loadData
                      );
             f.ShowDialog();
         }
     }
 }
Ejemplo n.º 2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            Form f = new FrmUniversityEdit(loadData);

            f.Show();
        }
Ejemplo n.º 3
0
 private void universityToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmUniversityEdit form = new FrmUniversityEdit();
     form.MdiParent = this;
     form.Show();
 }