Example #1
0
 private void UCCart_Load(object sender, EventArgs e)
 {
     uCCart = this;
     setUp();
     FetchStock();
     FetchCart();
 }
Example #2
0
 private void btnCart_Click(object sender, EventArgs e)
 {
     if (!DashBoard.Instance.pnlController.Controls.ContainsKey("UCCart"))
     {
         UCCart uCCart = new UCCart();
         uCCart.Dock = DockStyle.Fill;
         DashBoard.Instance.pnlController.Controls.Add(uCCart);
     }
     DashBoard.Instance.pnlController.Controls["UCCart"].BringToFront();
     DashBoard.Instance.BackButton.Visible = true;
     DashBoard.Instance.topLabel.Text      = "Shopping Cart";
 }