Beispiel #1
0
        private void pictureBoxPiz_Click(object sender, EventArgs e)
        {
            switch (comboBoxSelP.Text)
            {
            case "Грибная":
                this.Hide();
                MushrForm mu = new MushrForm();
                mu.Show();
                break;

            case "Сырная":
                MushrForm ch = new MushrForm();
                ch.Show();
                break;

            case "Сананасами":
                MushrForm an = new MushrForm();
                an.Show();
                break;

            case "Вчерашняя":
                MushrForm be = new MushrForm();
                be.Show();
                break;

            default:
                Console.WriteLine("Pizza not selected");
                break;
            }
        }
Beispiel #2
0
        private void showPizButton_Click(object sender, EventArgs e)
        {
            if (comboBoxSelP.Text == "Грибная")
            {
                this.Hide();
                MushrForm mu = new MushrForm();
                mu.Show();
            }

            if (comboBoxSelP.Text == "Сырная")
            {
                this.Hide();
                CheeseForm ch = new CheeseForm();
                ch.Show();
            }

            if (comboBoxSelP.Text == "Сананасами")
            {
                this.Hide();
                AnanasaForm an = new AnanasaForm();
                an.Show();
            }


            if (comboBoxSelP.Text == "Вчерашняя")
            {
                this.Hide();
                BeerForm bef = new BeerForm();
                bef.Show();
            }

            //pictureBoxPiz.ImageLocation = "C:/Users/Алексей/source/repos/PizzaOrder/PizzaOrder/Pictures/" + comboBoxSelP.Text + ".png";
        }