Beispiel #1
0
        public void DeleteClicked(object sender, EventArgs e)
        {
            var cellModel = (CartCellViewModel)sender;

            _cartViewModel.DeleteCartItem(cellModel.CartItemId);
            App.Database.DeleteItem(cellModel.CartItemId);
        }
Beispiel #2
0
        private void MenuItem_OnClicked(object sender, EventArgs e)
        {
            var menuItem = sender as MenuItem;
            var itemId   = (int)menuItem?.CommandParameter;

            _viewModel.DeleteCartItem(itemId);
        }