Beispiel #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmAltaModifProducto altaProd = new frmAltaModifProducto();

            altaProd.ShowDialog();
            cargarGrilla();
        }
Beispiel #2
0
 private void btnModificar_Click(object sender, EventArgs e)
 {
     if (dgvProductos.CurrentRow != null)
     {
         Producto             pmodif = (Producto)dgvProductos.CurrentRow.DataBoundItem;
         frmAltaModifProducto modif  = new frmAltaModifProducto(pmodif);
         modif.ShowDialog();
         cargarGrilla();
     }
     else
     {
         MessageBox.Show("No hay ningún producto seleccionado", "Cuidado!");
     }
 }
Beispiel #3
0
        private void btnNuevoProd_Click(object sender, EventArgs e)
        {
            frmAltaModifProducto altaProd = new frmAltaModifProducto();

            altaProd.Show();
        }