Esempio n. 1
0
 public static void CountCartItem()
 {
     Console.WriteLine(CheckOutApp.TotalItems());
     btnCheckOut.Text = "( " + CheckOutApp.TotalItems() + " )    Check Out";
     Console.WriteLine(btnCheckOut.Text);
     btnCheckOut.Refresh();
 }
 void StaticClear()
 {
     CheckOutApp.itemApps.Clear();
     CheckOut.TotalPrice = 0;
     if (CheckOut.lblTotalPrice != null)
     {
         CheckOut.lblTotalPrice.Text = "0.00";
     }
     if (Item.btnCheckOut != null)
     {
         Item.btnCheckOut = null;
     }
     btnCheckOut.Text = "( " + CheckOutApp.TotalItems() + " )    Check Out";
     user             = null;
     menuAllItems     = null;
     personalInfo     = null;
     checkOut         = null;
     //CheckOut.clearCartDel.Invoke();
     deliverySettings = null;
 }
        public void UpdateCartButton()
        {
            if (btnCheckOut == null)
            {
                if (this.Parent.Parent is UserEnd)
                {
                    UserEnd   userEnd  = this.Parent.Parent as UserEnd;
                    Control[] controls = userEnd.Controls.Find("btnCheckOut", true);// as Button;
                    if (controls.Length > 0)
                    {
                        if (controls[0] is Button)
                        {
                            btnCheckOut = controls[0] as Button;
                        }
                    }
                }
            }

            btnCheckOut.Text = "( " + CheckOutApp.TotalItems() + " )    Check Out";
        }