Пример #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (spIdAlmacen.Value > 0)
     {
         Warehouse oWarehouse = new Warehouse();
         RellenarAlmacen(ref oWarehouse);
         WarehouseController wareCont = new WarehouseController();
         if (wareCont.AddOrUpdateWarehouse(oWarehouse))
         {
             FrmSuccess.ConfirmacionFrom("Editado");
             //MessageBox.Show("Se edito correctamente.");
             Limpiar();
         }
         else
         {
             MessageBox.Show("ocurrio un error al editar.");
         }
     }
 }