Exemplo n.º 1
0
        public void FireOnSave(DispenseCartControlViewModel state)
        {
            var args = new DispenseCartSaveEventArgs();

            args.Items    = state.ItemsToCheckout;
            args.SubTotal = state.SubTotal;
            args.Discount = state.Discount;
            args.Vat      = state.Vat;
            args.Total    = state.Total;

            OnSave?.Invoke(this, args);
        }
Exemplo n.º 2
0
 private void UcDispenseCart_OnSave(object sender, Controls.DispenseCartSaveEventArgs e)
 {
     _presenter.SaveDispensedItems(e);
 }