private void LineItemSelected(int productId) { if (productId == -1) { CurrentProduct = null; return; } // Start loading the product information using the catalog service. LoadOperation load = _catalogService.Load(_catalogService.GetProductByIdQuery(productId)); load.Completed += (sender, args) => { CurrentProduct = _catalogService.Products.FirstOrDefault(item => item.ProductID == productId); }; }