Ejemplo n.º 1
0
        private void OnBarcodeEnteredCommandExecuted(string barcode)
        {
            if (InventoryInformation == null || InventoryInformation.ItemBarcode != barcode)
            {
                InventoryInformation = new InventoryInformation()
                {
                    ItemName          = "Tornillos",
                    ItemDescription   = @"D:\TGW\bin\PDEnvironment\SCOTe.Agent\v2\Projects\BuildSolution.proj(221,5): warning : CompleteTransportRequest.cs(15,18): warning CS1591: Missing XML comment for publicly visible type or member 'CompleteTransportRequest' [D:\_B\6837055\B\8\Products\SharedCode\ManualTransports\ManualTransports.Facade.Messages\ManualTransports.Facade.Messages.csproj] D:\TGW\bin\PDEnvironment\SCOTe.Agent\v2\Projects\BuildSolution.proj(221, 5): warning : CompleteTransportResponse.cs(16, 18): warning CS1591: Missing XML comment for publicly visible type or member 'CompleteTransportResponse'[D:\_B\6837055\B\8\Products\SharedCode\ManualTransports\ManualTransports.Facade.Messages\ManualTransports.Facade.Messages.csproj]",
                    ItemLocation      = "Pasillo 1 / Armario 2 / Estanteria 4 / Posición 3",
                    QuantityAvailable = 10,
                    ItemBarcode       = barcode
                };

                ItemImagePath    = @"C:\Users\rbo\Pictures\tornillos.jpg";
                QuantitySelected = 1;
            }
            else
            {
                if (IncreaseQuantityCommand.CanExecute())
                {
                    IncreaseQuantityCommand.Execute();
                }
            }

            RaisePropertiesChanged();
        }
Ejemplo n.º 2
0
 private void RaisePropertiesChanged()
 {
     RaisePropertyChanged(nameof(InventoryInformation));
     RaisePropertyChanged(nameof(ItemImagePath));
     RaisePropertyChanged(nameof(QuantitySelected));
     DecreaseQuantityCommand.RaiseCanExecuteChanged();
     IncreaseQuantityCommand.RaiseCanExecuteChanged();
     ConfirmPickCommand.RaiseCanExecuteChanged();
 }