Esempio n. 1
0
 private void btRemveSelectIterm_Click(object sender, System.EventArgs e)
 {
     mainRestaurant = (ClassRestaurant)lbItemSelected.SelectedItem;
     if (mainRestaurant == null)
     {
         MessageBox.Show("NO MENU SELECTED!", "ERROR");
     }
     else
     {
         lbItemSelected.Items.Remove(mainRestaurant);
     }
 }
Esempio n. 2
0
 private void rbPersian_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Persian("Persian beer ", "Persian", 3, 0));
     persianList.Add((Persian)mainRestaurant);
 }
Esempio n. 3
0
 private void rbChineBeer_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Chinese("Chinese beer ", "Chine", 3, 0));
     chineseList.Add((Chinese)mainRestaurant);
 }
Esempio n. 4
0
 private void rbContinental_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Chinese("Continental", "Chine", 4, 0));
     chineseList.Add((Chinese)mainRestaurant);
 }
Esempio n. 5
0
 private void rbCaridoCoktail_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Italian("Carido Cocktail", "Italino", 3, 0));
     italianList.Add((Italian)mainRestaurant);
 }
Esempio n. 6
0
 private void rbpersianBreakfast_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Persian("Full persian breakfast ", "Persian", 4, 0));
     persianList.Add((Persian)mainRestaurant);
 }
Esempio n. 7
0
 private void rbItalianobreakfast_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Italian("italiano breakfast", "Italiano", 4, 0));
     italianList.Add((Italian)mainRestaurant);
 }
Esempio n. 8
0
 private void rbChikenChowmein_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Chinese("chicken chow mein", "Chine", 6, 0));
     chineseList.Add((Chinese)mainRestaurant);
 }
Esempio n. 9
0
 private void rbToffu_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Chinese("Toffu", "Chine", 5, 0));
     chineseList.Add((Chinese)mainRestaurant);
 }
Esempio n. 10
0
 private void rbPizza_Click(object sender, System.EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Italian("Pizza", "Italiano", 6, 0));
     italianList.Add((Italian)mainRestaurant);
 }
Esempio n. 11
0
 private void rbFesenjan_Click(object sender, EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Persian("Fesenjan", "Persian", 6, 0));
     persianList.Add((Persian)mainRestaurant);
 }
Esempio n. 12
0
 private void rbTahcinChouse_Click(object sender, EventArgs e)
 {
     lbItemSelected.Items.Add(mainRestaurant = new Persian("TahChin", "Persian", 5, 0));
     persianList.Add((Persian)mainRestaurant);
 }