Ejemplo n.º 1
0
        private void btnInsert_Click(object sender, EventArgs e)
        {
            PersonForm pForm = new PersonForm();

            pForm.Show();
            pForm.updateDGW += this.updateDGVfromDb;
        }
Ejemplo n.º 2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            int     index   = profileDataGridView.SelectedCells[0].RowIndex;
            DataRow row     = ((DataTable)profileDataGridView.DataSource).Rows[index];
            Profile profile = new Profile(row);

            PersonForm pForm = new PersonForm(profile);

            pForm.Show();
            pForm.updateDGW += this.updateDGVfromDb;
        }
Ejemplo n.º 3
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            int index = profileDataGridView.SelectedCells[0].RowIndex;
            DataRow row = ((DataTable)profileDataGridView.DataSource).Rows[index];
            Profile profile = new Profile(row);

            PersonForm pForm = new PersonForm(profile);
            pForm.Show();
            pForm.updateDGW += this.updateDGVfromDb;
        }
Ejemplo n.º 4
0
 private void btnInsert_Click(object sender, EventArgs e)
 {
     PersonForm pForm = new PersonForm();
     pForm.Show();
     pForm.updateDGW += this.updateDGVfromDb;
 }