Esempio n. 1
0
        private void btn16x16_Click(object sender, RoutedEventArgs e)
        {
            ProgressBarUI psbu = new ProgressBarUI();

            psbu.Show();
            psbu.actionbtn_Click(sender, e);
            while (!psbu.isComplete())
            {
            }

            if (receipt == null || receipt.Data.Count == 0)
            {
                MessageBox.Show("There Are No Products In Cart.");
            }
            else
            {
                PaymentScreen ps = new PaymentScreen(itsBL, receipt, this, user);
                topSeller_label.Visibility = Visibility.Collapsed;
                topSellerColor.Visibility  = Visibility.Collapsed;
                lbl.Visibility             = Visibility.Collapsed;
                Combox.Visibility          = Visibility.Collapsed;
                tableShow.Children.Clear();
                tableShow.Children.Add(ps);
            }
        }
Esempio n. 2
0
        private void btn_Pay_Click(object sender, RoutedEventArgs e)
        {
            ProgressBarUI psbu = new ProgressBarUI();

            psbu.Show();
            psbu.actionbtn_Click(sender, e);
            while (!psbu.isComplete())
            {
            }
            Purchase a = new Purchase(itsBL, user, receipt, sum, this);

            vsDND.reloadData();
            vsDND.tableShow.Children.Clear();
            vsDND.tableShow.Children.Add(a);
        }
Esempio n. 3
0
        private void beClub_Click(object sender, RoutedEventArgs e)
        {
            ProgressBarUI psbu = new ProgressBarUI();

            psbu.Show();
            psbu.actionbtn_Click(sender, e);
            while (!psbu.isComplete())
            {
            }
            itsBL.clearReceipt(receipt);
            AddClubMember join = new AddClubMember(itsBL, isUse);

            chengeScreen.Children.Clear();
            chengeScreen.Children.Add(join);
        }
Esempio n. 4
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);
        }