Ejemplo n.º 1
0
        // --------------------------------------------
        // Initialization
        // --------------------------------------------

        public MakeOrderForm(ShoppingCart shoppingCart, User user, ShoppingCartForm shoppingCartForm)
        {
            InitializeComponent();

            this._shoppingCart     = shoppingCart;
            this._user             = user;
            this._shoppingCartForm = shoppingCartForm;
        }
Ejemplo n.º 2
0
        private void shoppingCartButton_Click(object sender, EventArgs e)
        {
            this._bookDetailForm?.Close();

            this._shoppingCartForm?.Close();
            this._shoppingCartForm = new ShoppingCartForm(this._shoppingCart, this._user);
            this._shoppingCartForm.Show();
        }