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); }
protected void PropagateMessage(SimpleSaleLineViewModel message, string token) { Messenger.Default.Send(message, token); }
private void AddProductToSaleList(SimpleSaleLineViewModel simpleSaleLineViewModel) { SaleList.Add(simpleSaleLineViewModel); }