Beispiel #1
0
 private void buttonMango_Click(object sender, EventArgs e)
 {
     GeneralItem = new FruitItem("Mango", 2.1);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #2
0
 private void buttonOnion_Click(object sender, EventArgs e)
 {
     GeneralItem = new VegetableItem("onion", 0.7);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #3
0
 private void buttonBanana_Click(object sender, EventArgs e)
 {
     GeneralItem = new FruitItem("banana", 1.7);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #4
0
 private void buttonStrawberry_Click(object sender, EventArgs e)
 {
     GeneralItem = new FruitItem("Strawberry", 2.5);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #5
0
 //Adding Items
 private void buttonApple_Click(object sender, EventArgs e)
 {
     GeneralItem = new FruitItem("Apple", 1.5);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #6
0
 private void buttonOrange_Click(object sender, EventArgs e)
 {
     GeneralItem = new FruitItem("Orange", 1.2);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #7
0
 private void buttonCheese_Click(object sender, EventArgs e)
 {
     GeneralItem = new DairyItem("Cheese", 5.4);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #8
0
 private void buttonButter_Click(object sender, EventArgs e)
 {
     GeneralItem = new DairyItem("Butter", 1.2);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #9
0
 private void buttonYogurt_Click(object sender, EventArgs e)
 {
     GeneralItem = new DairyItem("Yogurt ", 1.0);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #10
0
 private void buttonMilk_Click(object sender, EventArgs e)
 {
     GeneralItem = new DairyItem("Milk", 1.4);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #11
0
 private void buttonBroccoli_Click(object sender, EventArgs e)
 {
     GeneralItem = new VegetableItem("broccoli", 1.7);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #12
0
 private void buttonPeas_Click(object sender, EventArgs e)
 {
     GeneralItem = new VegetableItem("peas", 0.5);
     orderItems.Add(GeneralItem);
     Update();
 }
Beispiel #13
0
 private void buttonRedPepper_Click(object sender, EventArgs e)
 {
     GeneralItem = new VegetableItem("red pepper", 0.9);
     orderItems.Add(GeneralItem);
     Update();
 }