Ejemplo n.º 1
0
 private void ConfirmButton_Click(object sender, RoutedEventArgs e)
 {
     if (purchase.ItemsAmount > 0)
     {
         PurchaseDB.Add(purchase);
         PurchaseCreated?.Invoke(purchase);
         Close();
     }
     else
     {
         MessageBox.Show("Goods list is empty!");
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnPurchaseCreated()
 {
     CreateNotification(EventActionType.Created);
     PurchaseCreated?.Invoke(this, new NewNotificationEventArgs(this));
 }