Your pizza options? Hot PIZZA Size Crust O Small O Medium O Large O Thin O Thick Toppings? - Extra Cheese I Sausage Pepperoni I Mushroom I Onion Delivery Order Summary No. Size & Crust Toppings Deliver Price 1 One small thin crust pizza TOTAL COST (12% VAT included) Clear Add Order Compute Order Print Receipt Back To Main

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Why is the program only adding 1 listview subitem?

Menu
Your pizza options?
Hot
PIZZA
Size
Crust
O Small
O Medium
O Large
O Thin
O Thick
Toppings?
Extra Cheese
Sausage I Pe
eroni I Mushroom
Onion
Delivery
Order Summary
No.
Size & Crust
Toppings
Deliver
Price
One small thin crust pizza
1
TOTAL COST (12% VAT included)
Clear
Add Order
Compute Order
Print Receipt
Back To Main
Transcribed Image Text:Menu Your pizza options? Hot PIZZA Size Crust O Small O Medium O Large O Thin O Thick Toppings? Extra Cheese Sausage I Pe eroni I Mushroom Onion Delivery Order Summary No. Size & Crust Toppings Deliver Price One small thin crust pizza 1 TOTAL COST (12% VAT included) Clear Add Order Compute Order Print Receipt Back To Main
Form1.cs 4
Form1.cs [Design] 4
Form2.cs [Design]* 4
Form2.cs* + X
Form1.cs [Design] +
Form2.cs [Design]* +
Form1.cs 4
Form2.c
HOT PIZZA
C# HOT PIZZA
1 reterence
public Form2()
/toppings
18
67
19
68
{
InitializeComponent();
else if (checkBoxExtracheese.Checked)
{
toppings = "with extra cheese";
20
69
21
70
22
71
1 reference
private void Form2_Load(object sender, EventArgs e)
72
23
else if (checkBoxSausage.Checked)
{
toppings = "with sausage";
73
24
74
listView.Columns. Add("No.", 35, HorizontalAlignment.Center);
listView.Columns. Add("Size & Crust", 178, HorizontalAlignment.Center);
listView.Columns. Add("Toppings", 330, HorizontalAlignment.Center);
listView.Columns. Add("Deliver", 80, HorizontalAlignment.Center);
listView.Columns. Add("Price", 180, HorizontalAlignment.Center);
25
75
26
76
27
else if (checkBoxPepperoni.Checked)
{
toppings = "with pepperoni";
77
28
78
29
79
30
80
31
else if (checkBoxMushroom.Checked)
{
81
1 reference
82
32
private void button2_Click(object sender, EventArgs e)
toppings = "with mushroom";
83
33
84
34
//Size & Crust
else if (checkBoxOnion.Checked)
{
85
35
if (radioButtonSmall.Checked)
86
36
87
toppings - "with onion";
37
if (radioButtonThin.Checked)
{
sizeCrust = "One small thin crust pizza";
88
38
89
//deliver
39
else if (checkBoxDelivery.Checked)
{
delivery = "for delivery";
90
40
91
41
else if (radioßuttonThick.Checked)
{
sizecrust = "One small thick curst pizza";
92
42
93
43
94
44
95
45
96
addTolistview(sizeCrust, toppings, delivery);
46
else if (radioButtonMedium.Checked)
{
97
47
1 reference
if (radioButtonThin.Checked)
{
sizecrust = "One medium thin crust pizza";
48
98
private void addTolistview(string a, string b, string c).
49
{
ListViewItem columni = new ListViewItem("" + autoID);
99
50
100
51
101
52
else if (radioButtonThick.Checked)
{
sizecrust = "One medium thick crust pizza";
102
columni. SubItems. Add(sizeCrust);
columni. SubItems.Add(toppings);
columni. SubItems.Add(delivery);
53
103
54
184
55
105
56
106
listView. Items. Add(column1);
else if (radioButtonLarge.Checked)
this.autoID++;
57
107
58
108
if (radioButtonThin.Checked)
{
sizecrust = "One large thin crust pizza";
59
109
60
110
1 reference
private void buttonClear_Click(object sender, EventArgs e)
{
this.Controls.Clear();
this.InitializeComponent ();
61
62
111
else if (radioButtonThick.Checked)
{
sizeCrust = "One large thick crust pizza";
63
112
64
113
65
114
66
115
67
//toppings
116
Transcribed Image Text:Form1.cs 4 Form1.cs [Design] 4 Form2.cs [Design]* 4 Form2.cs* + X Form1.cs [Design] + Form2.cs [Design]* + Form1.cs 4 Form2.c HOT PIZZA C# HOT PIZZA 1 reterence public Form2() /toppings 18 67 19 68 { InitializeComponent(); else if (checkBoxExtracheese.Checked) { toppings = "with extra cheese"; 20 69 21 70 22 71 1 reference private void Form2_Load(object sender, EventArgs e) 72 23 else if (checkBoxSausage.Checked) { toppings = "with sausage"; 73 24 74 listView.Columns. Add("No.", 35, HorizontalAlignment.Center); listView.Columns. Add("Size & Crust", 178, HorizontalAlignment.Center); listView.Columns. Add("Toppings", 330, HorizontalAlignment.Center); listView.Columns. Add("Deliver", 80, HorizontalAlignment.Center); listView.Columns. Add("Price", 180, HorizontalAlignment.Center); 25 75 26 76 27 else if (checkBoxPepperoni.Checked) { toppings = "with pepperoni"; 77 28 78 29 79 30 80 31 else if (checkBoxMushroom.Checked) { 81 1 reference 82 32 private void button2_Click(object sender, EventArgs e) toppings = "with mushroom"; 83 33 84 34 //Size & Crust else if (checkBoxOnion.Checked) { 85 35 if (radioButtonSmall.Checked) 86 36 87 toppings - "with onion"; 37 if (radioButtonThin.Checked) { sizeCrust = "One small thin crust pizza"; 88 38 89 //deliver 39 else if (checkBoxDelivery.Checked) { delivery = "for delivery"; 90 40 91 41 else if (radioßuttonThick.Checked) { sizecrust = "One small thick curst pizza"; 92 42 93 43 94 44 95 45 96 addTolistview(sizeCrust, toppings, delivery); 46 else if (radioButtonMedium.Checked) { 97 47 1 reference if (radioButtonThin.Checked) { sizecrust = "One medium thin crust pizza"; 48 98 private void addTolistview(string a, string b, string c). 49 { ListViewItem columni = new ListViewItem("" + autoID); 99 50 100 51 101 52 else if (radioButtonThick.Checked) { sizecrust = "One medium thick crust pizza"; 102 columni. SubItems. Add(sizeCrust); columni. SubItems.Add(toppings); columni. SubItems.Add(delivery); 53 103 54 184 55 105 56 106 listView. Items. Add(column1); else if (radioButtonLarge.Checked) this.autoID++; 57 107 58 108 if (radioButtonThin.Checked) { sizecrust = "One large thin crust pizza"; 59 109 60 110 1 reference private void buttonClear_Click(object sender, EventArgs e) { this.Controls.Clear(); this.InitializeComponent (); 61 62 111 else if (radioButtonThick.Checked) { sizeCrust = "One large thick crust pizza"; 63 112 64 113 65 114 66 115 67 //toppings 116
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY