예제 #1
0
        private void btnConfermaPanino_Click(object sender, EventArgs e)
        {
            menu.Cibos       = db.GetData();
            paninaro.Builder = builder;
            OrdinePanino(cboxHamburger, tboxQHamburger);
            OrdinePanino(cboxHotDog, tboxQHotDog);
            OrdinePanino(cboxCheeseburger, tboxQCheeseburger);
            OrdinePanino(cboxChickenBurger, tboxQChickenBurger);
            OrdinePanino(cboxToast, tboxQToast);
            db.SaveData(menu.Cibos);
            this.Hide();
            FormMenu formMenu = new FormMenu(db, menu);

            formMenu.Show();
        }
        private void btnConferma_Click(object sender, EventArgs e)
        {
            menu.Cibos     = db.GetData();
            barman.Builder = builder;
            OrdineBevanda(cboxAcqua, tboxQAcqua);
            OrdineBevanda(cboxVino, tboxQVino);
            OrdineBevanda(cboxBirra, tboxQBirra);
            OrdineBevanda(cboxCocaCola, tboxQCocaCola);
            OrdineBevanda(cboxFanta, tboxQFanta);
            OrdineBevanda(cboxSprite, tboxQSprite);
            db.SaveData(menu.Cibos);
            this.Hide();
            FormMenu formMenu = new FormMenu(db, menu);

            formMenu.Show();
        }
예제 #3
0
        private void btnConfermaPizze_Click(object sender, EventArgs e)
        {
            menu.Cibos        = db.GetData();
            pizzaiolo.Builder = builder;
            OrdinePizza(cboxMargherita, tboxQuantitaMargherita);
            OrdinePizza(cboxPepSal, txtboxQPepSal);
            OrdinePizza(cboxOlive, tboxQOlive);
            OrdinePizza(cboxFunghiSalsiccia, tboxQFunghiSalsiccia);
            OrdinePizza(cboxSalamePiccante, tboxQSalamePiccante);
            OrdinePizza(cboxWustelPatatine, tboxQWustelPatatine);
            db.SaveData(menu.Cibos);
            this.Hide();
            FormMenu formMenu = new FormMenu(db, menu);

            formMenu.Show();
        }
예제 #4
0
 /* action uf user */
 private void button1_Click(object sender, EventArgs e)
 {
     this.Hide();
     this.formMenu = new FormMenu(db, menu);
     this.formMenu.Show();
 }