private void btnAgregar_Click(object sender, EventArgs e) { fmAlta alta = new fmAlta(); // creo la ventana alta.ShowDialog(); // abro la ventana Cargar(); }
private void btnModificar_Click(object sender, EventArgs e) { Articulos art; art = (Articulos)dgvGrilla.CurrentRow.DataBoundItem; fmAlta modificar = new fmAlta(art); modificar.ShowDialog(); Cargar(); }
private void dgvGrilla_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Articulos art; art = (Articulos)dgvGrilla.CurrentRow.DataBoundItem; fmAlta modificar = new fmAlta(art, false); modificar.ShowDialog(); Cargar(); }