private void SendSelectedProductToParent()
        {
            var simpleSaleLine = new SimpleSaleLineViewModel
            {
                ProductBaseId = selectedProduct.ProductBaseId,
                ProductName   = selectedProduct.Name,
                Unit          = Unit,
                Quantity      = Quantity,
                UnitPrice     = UnitPrice,
                LinePrice     = LineOrderPrice
            };

            PropagateMessage(simpleSaleLine, Constants.Token8);
        }
示例#2
0
 protected void PropagateMessage(SimpleSaleLineViewModel message, string token)
 {
     Messenger.Default.Send(message, token);
 }
示例#3
0
 private void AddProductToSaleList(SimpleSaleLineViewModel simpleSaleLineViewModel)
 {
     SaleList.Add(simpleSaleLineViewModel);
 }