Esempio n. 1
0
 private void xLrgDrinkButton_Click(object sender, EventArgs e)
 {
     //this codes the button and send the information on to the next form
     double price1 = 4.50;
     Global.Price1 = price1.ToString();
     Form copydialogform = new Quantity();
     copydialogform.ShowDialog();
     item6 = Convert.ToInt32(Global.amount);
     tprice6 = Convert.ToDouble(Global.cost);
     this.xLrgDrkAmtLabel.Text = item6.ToString();
     this.xLrgDrkOutLabel.Text = tprice6.ToString("C");
     this.xLrgDrkAmtLabel.Visible = true;
     this.xLrgDrkOutLabel.Visible = true;
     this.xLargeDrinkLabel.Visible = true;
 }
Esempio n. 2
0
 private void xMediumPopcornButton_Click(object sender, EventArgs e)
 {
     //this codes the button and send the information on to the next form
     double price1 = 4;
     Global.Price1 = price1.ToString();
     Form copydialogform = new Quantity();
     copydialogform.ShowDialog();
     item2 = Convert.ToInt32(Global.amount);
     tprice2 = Convert.ToDouble(Global.cost);
     this.xMedPopAmtLabel.Text = item2.ToString();
     this.xMedPopOutLabel.Text = tprice2.ToString("C");
     this.xMedPopAmtLabel.Visible = true;
     this.xMedPopOutLabel.Visible = true;
     this.xMedPopLabel.Visible = true;
 }
Esempio n. 3
0
 private void xSmallComboButton_Click(object sender, EventArgs e)
 {
     //this codes the button and send the information on to the next form
     double price1 = 5.50;
     Global.Price1 = price1.ToString();
     Form copydialogform = new Quantity();
     copydialogform.ShowDialog();
     item10 = Convert.ToInt32(Global.amount);
     tprice10 = Convert.ToDouble(Global.cost);
     this.xSmlComAmtLabel.Text = item10.ToString();
     this.xSmlComOutLabel.Text = tprice10.ToString("C");
     this.xSmlComAmtLabel.Visible = true;
     this.xSmlComOutLabel.Visible = true;
     this.xSmallComboLabel.Visible = true;
 }