Example #1
0
        private void Cart_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();

            f2.Show();
            CartRepository cartRepository = new CartRepository();

            f2.dataGridView1.DataSource = cartRepository.GetAll();
            this.Hide();
        }
Example #2
0
        private void Order_Click(object sender, EventArgs e)
        {
            Form3 f3 = new Form3();

            f3.Show();
            CartRepository cartRepository = new CartRepository();
            List <Cart>    cart           = cartRepository.GetAll();

            cart.Clear();
            this.Hide();
        }