private void RemoveSaleProduct(object sender, RoutedEventArgs e)
        {
            Button     button     = e.Source as Button;
            BasketItem basketItem = button.CommandParameter as BasketItem;

            viewModel.RemoveSaleProduct(basketItem);
            InvokersListBox.Focus();
        }
Example #2
0
        private void RemoveSaleProduct(object sender, RoutedEventArgs e)
        {
            Button  button  = e.Source as Button;
            Invoker invoker = button.CommandParameter as Invoker;

            viewModel.RemoveSaleProduct(invoker);
            InvokersListBox.Focus();
        }