private void Button_Click_20(object sender, RoutedEventArgs e) { MessageBoxResult messageBoxResult2 = MessageBox.Show("Скасувати замовлення?", "Замовлення", MessageBoxButton.YesNo); if (messageBoxResult2 == MessageBoxResult.Yes) { list_b.Children.Clear(); basketBook = new BasketBook(new BasketWithoutDiscount()); AllPrice.Text = "0₴"; PR.Background = (Brush)bc2.ConvertFrom("#FFF44336"); PR.BorderBrush = (Brush)bc2.ConvertFrom("#FFF44336"); indicator.Kind = MaterialDesignThemes.Wpf.PackIconKind.Search; CheckPromocode.Text = ""; } }
public void setPromocode(BasketBook basket) { basket.State = new BasketWithDiscount(); }