Пример #1
0
 private void btn_Sandwich_Click(object sender, EventArgs e)
 {
     factory        = new CreateSandwich(txtSub.Text, txtBread.Text, txtCheese.Text, txtTopp.Text, txtSideS.Text);
     newDish        = factory.createDish();
     txtOrder.Text += newDish.getOrder() + "\n \n";
 }
Пример #2
0
 private void btn_Pasta_Click(object sender, EventArgs e)
 {
     factory        = new CreatePasta(txtPasta.Text, txtSauce.Text, txtMeat.Text, txtExtra.Text, txtSideP.Text);
     newDish        = factory.createDish();
     txtOrder.Text += newDish.getOrder() + "\n \n";
 }