private void Cancel() { if (_edit) { SupplierPurchases p2 = purchaseService.FindPurchase(Purchase.PurchaseID); DataUtils.Copy(Purchase, p2); } completed = true; navigationContext.NavigationService.RequestNavigate(RegionNames.PurchasesMain); }
private void OnPurchaseAdded(SupplierPurchases obj) { Items.Add(obj); Total = Items.Sum(i => i.Total); SelectedItem = obj; }
private void OnPurchaseUpdated(SupplierPurchases obj) { Total = Items.Sum(i => i.Total); SelectedItem = obj; }