Beispiel #1
0
        private void btnCart_Click(object sender, EventArgs e)
        {
            cart = new ShoppingCartForm();
            cart.ShowDialog();
            string buttonname = "Cart";

            SaveLog.Savelog(buttonname);
        }
Beispiel #2
0
        public void ShowProducts()
        {
            list = new List <ShoppingItemPanel>();

            foreach (ItemToPurchase item in ItemsToPurchase)
            {
                ShoppingItemPanel pnl = new ShoppingItemPanel(item);
                list.Add(pnl);
            }
            shoppingForm = new ShoppingCartForm(list);
            if (list.Count != 0)
            {
                shoppingForm.ShowDialog();
            }
        }