private void pictureBox3_Click(object sender, EventArgs e) { PictureBox per = (PictureBox)sender; var ingredientes = new List <Ingredientes>(); ingredientes.Add(Ingredientes.tocino); var burro = new Burromexa(ingredientes); if (lblPersonalizado.Text == "Nachos con") { lblPersonalizado.Text += burro.ToString(); } else if (lblPersonalizado.Text == "Nachos con queso" || lblPersonalizado.Text == "Nachos con jalapeños") { lblPersonalizado.Text = lblPersonalizado.Text + "," + burro.ToString(); } else if (lblPersonalizado.Text != String.Empty) { lblPersonalizado.Text += " y" + burro.ToString(); } }
private void pictureBox3_Click(object sender, EventArgs e) { PictureBox per = (PictureBox)sender; var ingredientes = new List <Ingredientes>(); ingredientes.Add(Ingredientes.cebolla); var burro = new Burromexa(ingredientes); if (lblPersonalizado.Text == "Burromexa con") { lblPersonalizado.Text += burro.ToString(); } else if (lblPersonalizado.Text == "Burromexa con jitomate" || lblPersonalizado.Text == "Burromexa con chile") { lblPersonalizado.Text = lblPersonalizado.Text + "," + burro.ToString(); } else if (lblPersonalizado.Text != String.Empty) { lblPersonalizado.Text += " y" + burro.ToString(); } }