private void xSmallDrinkButton_Click(object sender, EventArgs e) { //this codes the button and send the information on to the next form double price1 = 2.50; Global.Price1 = price1.ToString(); Form copydialogform = new Quantity(); copydialogform.ShowDialog(); item4 = Convert.ToInt32(Global.amount); tprice4 = Convert.ToDouble(Global.cost); this.xSmlDrkAmtLabel.Text = item4.ToString(); this.xSmlDrkOutLabel.Text = tprice4.ToString("C"); this.xSmlDrkAmtLabel.Visible = true; this.xSmlDrkOutLabel.Visible = true; this.xSmlDrinkLabel.Visible = true; }
private void xLargePopcornButton_Click(object sender, EventArgs e) { //this codes the button and send the information on to the next form double price1 = 5; Global.Price1 = price1.ToString(); Form copydialogform = new Quantity(); copydialogform.ShowDialog(); item3 = Convert.ToInt32(Global.amount); tprice3 = Convert.ToDouble(Global.cost); this.xLrgPopAmtLabel.Text = item3.ToString(); this.xLrgPopOutLabel.Text = tprice3.ToString("C"); this.xLrgPopAmtLabel.Visible = true; this.xLrgPopOutLabel.Visible = true; this.xLrgPopLabel.Visible = true; }
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; }
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; }
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; }