Beispiel #1
0
        public PaymentScreen(IBL itsBL, Receipt receipt, ViewShopDnD vsDND, User user)
        {
            InitializeComponent();
            this.vsDND   = vsDND;
            this.receipt = receipt;
            this.sum     = totleSum(this.receipt);
            this.itsBL   = itsBL;
            this.listPS  = this.receipt.Data;
            this.user    = user;

            this.receiptDTG.ItemsSource            = listPS;
            receiptDTG.PreviewMouseLeftButtonDown += new MouseButtonEventHandler(receiptDTG_PreviewMouseLeftButtonDown);
        }
Beispiel #2
0
        private void Shop_Click(object sender, RoutedEventArgs e)
        {
            ProgressBarUI psbu = new ProgressBarUI();

            psbu.Show();
            psbu.actionbtn_Click(sender, e);
            while (!psbu.isComplete())
            {
            }
            itsBL.clearReceipt(receipt);
            receipt = new Receipt();
            List <Product> listP      = itsBL.queryByString(Classes.Product, stringFields.inStock, "True").Cast <Product>().ToList();
            ViewShopDnD    shopToShow = new ViewShopDnD(itsBL, listP, receipt, isUse, this);

            chengeScreen.Children.Clear();
            chengeScreen.Children.Add(shopToShow);
        }