mamararabia

POS System

Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 100.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Runtime.InteropServices;
  10. using MySql.Data.MySqlClient;
  11.  
  12. namespace triplang
  13. {
  14. public partial class pane : Form
  15. {
  16.  
  17.  
  18. private Size? _mouseGrabOffset;
  19. [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
  20. private static extern IntPtr CreateRoundRectRgn
  21. (
  22. int nLeftRect,
  23. int nTopRect,
  24. int nRightRect,
  25. int nBottomRect,
  26. int nWidthEllipse,
  27. int nHeightEllipse
  28. );
  29.  
  30.  
  31. const int WS_MINIMIZEBOX = 0x20000;
  32. const int CS_DBLCLKS = 0x8;
  33. protected override CreateParams CreateParams
  34. {
  35. get
  36. {
  37. CreateParams cp = base.CreateParams;
  38. cp.Style |= WS_MINIMIZEBOX;
  39. cp.ClassStyle |= CS_DBLCLKS;
  40. return cp;
  41. }
  42. }
  43.  
  44.  
  45. public pane()
  46. {
  47. InitializeComponent();
  48. this.FormBorderStyle = FormBorderStyle.None;
  49. Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
  50.  
  51.  
  52. }
  53. protected override void OnMouseDown(MouseEventArgs e)
  54. {
  55. if (e.Button == System.Windows.Forms.MouseButtons.Left)
  56. _mouseGrabOffset = new Size(e.Location);
  57.  
  58. base.OnMouseDown(e);
  59. }
  60.  
  61. protected override void OnMouseUp(MouseEventArgs e)
  62. {
  63. _mouseGrabOffset = null;
  64.  
  65. base.OnMouseUp(e);
  66. }
  67.  
  68. protected override void OnMouseMove(MouseEventArgs e)
  69. {
  70. if (_mouseGrabOffset.HasValue)
  71. {
  72. this.Location = Cursor.Position - _mouseGrabOffset.Value;
  73. }
  74.  
  75. base.OnMouseMove(e);
  76. }
  77. private void pane_Load(object sender, EventArgs e)
  78. {
  79. this.php1.Hide();
  80. f4.Hide(); f5.Hide(); f6.Hide();
  81. this.discounttext.Hide();
  82. this.label13.Hide();
  83. this.ORNUMBER.Hide();
  84. this.friess1.Hide();
  85. this.friess2.Hide();
  86. this.friess3.Hide();
  87. this.friess4.Hide();
  88. this.friess5.Hide();
  89. this.applepiee.Hide();
  90. this.burgerr1.Hide();
  91. this.burgerr2.Hide();
  92. this.burgerr3.Hide();
  93. this.burgerr4.Hide();
  94. this.burgerr5.Hide();
  95. this.cafee4.Hide();
  96. this.cafee1.Hide();
  97. this.cafee3.Hide();
  98. this.cafee5.Hide();
  99.  
  100. this.idnumberr.Text = Form2.setvalueforid;
  101. this.idnumberr.Hide();
  102.  
  103. comboBox1.Hide();
  104. Q1.Hide(); Q3.Hide(); Q5.Hide(); Q7.Hide(); size1.Hide();
  105. Q8.Hide();
  106. this.sample.Hide();
  107. comboBox24.Hide(); comboBox22.Hide(); comboBox20.Hide(); comboBox18.Hide(); comboBox16.Hide();
  108.  
  109.  
  110. this.dateTimePicker1.Hide();
  111. cashier.Text = login.setvalueforusername;
  112.  
  113.  
  114. listView1.View = View.Details;
  115. listView1.FullRowSelect = true;
  116.  
  117. listView1.Columns.Add("Order", 75);
  118.  
  119. listView1.Columns.Add("Quantity", 75);
  120. listView1.Columns.Add("Size", 75);
  121. listView1.Columns.Add("Price", 75);
  122.  
  123. tabControl1.Appearance = TabAppearance.FlatButtons;
  124. tabControl1.ItemSize = new Size(0, 1);
  125. tabControl1.SizeMode = TabSizeMode.Fixed;
  126.  
  127. breakfast.TabStop = false;
  128. breakfast.FlatStyle = FlatStyle.Flat;
  129. breakfast.FlatAppearance.BorderColor = Color.DarkRed;
  130.  
  131.  
  132. lunch.TabStop = false;
  133. lunch.FlatStyle = FlatStyle.Flat;
  134. lunch.FlatAppearance.BorderColor = Color.DarkRed;
  135.  
  136.  
  137. valuemeal.TabStop = false;
  138. valuemeal.FlatStyle = FlatStyle.Flat;
  139. valuemeal.FlatAppearance.BorderColor = Color.DarkRed;
  140.  
  141.  
  142. drinks.TabStop = false;
  143. drinks.FlatStyle = FlatStyle.Flat;
  144. drinks.FlatAppearance.BorderColor = Color.DarkRed;
  145.  
  146.  
  147. mccafe.TabStop = false;
  148. mccafe.FlatStyle = FlatStyle.Flat;
  149. mccafe.FlatAppearance.BorderColor = Color.DarkRed;
  150.  
  151. bestseller.TabStop = false;
  152. bestseller.FlatStyle = FlatStyle.Flat;
  153. bestseller.FlatAppearance.BorderColor = Color.DarkRed;
  154.  
  155.  
  156.  
  157. }
  158.  
  159.  
  160.  
  161.  
  162.  
  163. private void add(string Order, string Quantity, String Size, String Price)
  164. {
  165. String[] row = { Order, Quantity, Size, Price };
  166. ListViewItem item = new ListViewItem(row);
  167.  
  168. listView1.Items.Add(item);
  169. }
  170. private void label3_Click(object sender, EventArgs e)
  171. {
  172. Environment.Exit(0);
  173.  
  174. }
  175.  
  176. private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  177. {
  178.  
  179. }
  180.  
  181. private void loginToolStripMenuItem_Click(object sender, EventArgs e)
  182. {
  183. adminlogin frm = new adminlogin();
  184. frm.Show();
  185. this.Hide();
  186.  
  187. }
  188.  
  189.  
  190.  
  191. private void button2_Click(object sender, EventArgs e)
  192. {
  193.  
  194. }
  195.  
  196. private void pauseNewPOSToolStripMenuItem_Click(object sender, EventArgs e)
  197. {
  198.  
  199. }
  200.  
  201. private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
  202. {
  203. logout exe = new logout();
  204. exe.Show();
  205. this.Close();
  206.  
  207. }
  208.  
  209. private void pictureBox2_Click(object sender, EventArgs e)
  210. {
  211. comboBox1.Show();
  212.  
  213.  
  214. }
  215.  
  216. private void button2_Click_1(object sender, EventArgs e)
  217. {
  218.  
  219. if (comboBox1.SelectedItem == null)
  220. {
  221. MessageBox.Show("Please select an item", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  222. }
  223.  
  224.  
  225. else
  226. {
  227.  
  228. if (comboBox1.SelectedItem != null)
  229. {
  230. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  231.  
  232. if (dialogResult == DialogResult.Yes)
  233. {
  234. add(ChickenBF.Text, comboBox1.Text, reg1.Text, price1.Text);
  235.  
  236.  
  237.  
  238.  
  239. }
  240. else if (dialogResult == DialogResult.No)
  241. {
  242.  
  243.  
  244.  
  245. }
  246.  
  247. }
  248. }
  249. }
  250.  
  251.  
  252.  
  253.  
  254. private void button1_Click_1(object sender, EventArgs e)
  255. {
  256.  
  257. if (listView1.Items.Count <= 0)
  258. {
  259. MessageBox.Show("Please select an item first", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  260. }
  261. else if (total.Text == "0")
  262. {
  263. MessageBox.Show("Get the total first", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  264. }
  265. else if (string.IsNullOrEmpty(amount.Text))
  266. {
  267. MessageBox.Show("Enter an amount first", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  268. }
  269. else if (Convert.ToDouble(amount.Text) < Convert.ToDouble(total.Text))
  270. {
  271. MessageBox.Show("Not enough money.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
  272. }
  273. else if (change.Text == "0")
  274. {
  275. MessageBox.Show("Process it first", "POS", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  276. }
  277.  
  278. else
  279. {
  280. foreach (ListViewItem li in listView1.Items)
  281. {
  282.  
  283. string condense = "datasource=localhost;port=3306;username=root;password=''";
  284. string milk = "insert into empaccount.sales(ORNUMBER,Cashier,Orders,Quantity,Size,Price,AMOUNT,Returnn,Discount,Date) values ('" + this.ORNUMBER.Text + "','" + cashier.Text + "','" + li.SubItems[0].Text + "','" + li.SubItems[1].Text + "','" + li.SubItems[2].Text + "','" + li.SubItems[3].Text + "','" + this.amount.Text + "','" + this.change.Text + "','" + this.discount1.Text + "','" + this.dateTimePicker1.Value + "');";
  285. MySqlConnection conDatabase = new MySqlConnection(condense);
  286. MySqlCommand cmdDatabase = new MySqlCommand(milk, conDatabase);
  287. MySqlDataReader myReader;
  288.  
  289. if (string.IsNullOrEmpty(cashier.Text))
  290. {
  291. MessageBox.Show("Please fill the Notes. ", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  292. }
  293.  
  294. if (listView1.Items.Count < 0)
  295. {
  296. MessageBox.Show("Please order first", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
  297. }
  298.  
  299. else
  300. {
  301. conDatabase.Open();
  302. myReader = cmdDatabase.ExecuteReader();
  303.  
  304.  
  305.  
  306. while (myReader.Read())
  307. {
  308.  
  309. }
  310.  
  311.  
  312. }
  313.  
  314. }
  315. MessageBox.Show("Your order has been added susccessfully", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  316. PRINT frm = new PRINT();
  317.  
  318. frm.cashier.Text = cashier.Text.ToString();
  319. frm.idnumber.Text = idnumberr.Text.ToString();
  320. frm.ornumber.Text = ORNUMBER.Text.ToString();
  321. frm.datevalue.Text = dateTimePicker1.Value.ToString();
  322. frm.total.Text = total.Text.ToString();
  323. frm.amount.Text = amount.Text.ToString();
  324. frm.change.Text = change.Text.ToString();
  325. frm.discount.Text = discount1.Text.ToString();
  326. for (int i = 0; i < listView1.Items.Count; i++)
  327. {
  328. frm.item1.Text = listView1.Items[0].SubItems[0].Text.ToString();
  329. frm.qt1.Text = listView1.Items[0].SubItems[1].Text.ToString();
  330. frm.size1.Text = listView1.Items[0].SubItems[2].Text.ToString();
  331. frm.price1.Text = listView1.Items[0].SubItems[3].Text.ToString();
  332. if (listView1.Items.Count > 1)
  333. {
  334. frm.item2.Text = listView1.Items[1].SubItems[0].Text.ToString();
  335. frm.qt2.Text = listView1.Items[1].SubItems[1].Text.ToString();
  336. frm.size2.Text = listView1.Items[1].SubItems[2].Text.ToString();
  337. frm.price2.Text = listView1.Items[1].SubItems[3].Text.ToString();
  338. }
  339. if (listView1.Items.Count > 2)
  340. {
  341. //row3
  342. frm.item3.Text = listView1.Items[2].SubItems[0].Text.ToString();
  343. frm.qt3.Text = listView1.Items[2].SubItems[1].Text.ToString();
  344. frm.size3.Text = listView1.Items[2].SubItems[2].Text.ToString();
  345. frm.price3.Text = listView1.Items[2].SubItems[3].Text.ToString();
  346. }
  347. if (listView1.Items.Count > 3)
  348. {
  349. //row4
  350. frm.item4.Text = listView1.Items[3].SubItems[0].Text.ToString();
  351. frm.qt4.Text = listView1.Items[3].SubItems[1].Text.ToString();
  352. frm.size4.Text = listView1.Items[3].SubItems[2].Text.ToString();
  353. frm.price4.Text = listView1.Items[3].SubItems[3].Text.ToString();
  354. }
  355. //row5
  356. if (listView1.Items.Count > 4)
  357. {
  358. frm.item5.Text = listView1.Items[4].SubItems[0].Text.ToString();
  359. frm.qt5.Text = listView1.Items[4].SubItems[1].Text.ToString();
  360. frm.size5.Text = listView1.Items[4].SubItems[2].Text.ToString();
  361. frm.price5.Text = listView1.Items[4].SubItems[3].Text.ToString();
  362. }
  363. if (listView1.Items.Count > 5)
  364. // row6
  365. {
  366. frm.item6.Text = listView1.Items[5].SubItems[0].Text.ToString();
  367. frm.qt6.Text = listView1.Items[5].SubItems[1].Text.ToString();
  368. frm.size6.Text = listView1.Items[5].SubItems[2].Text.ToString();
  369. frm.price6.Text = listView1.Items[5].SubItems[3].Text.ToString();
  370. }
  371. if (listView1.Items.Count > 6)
  372. {
  373. // row7
  374. frm.item7.Text = listView1.Items[6].SubItems[0].Text.ToString();
  375. frm.qt7.Text = listView1.Items[6].SubItems[1].Text.ToString();
  376. frm.size7.Text = listView1.Items[6].SubItems[2].Text.ToString();
  377. frm.price7.Text = listView1.Items[6].SubItems[3].Text.ToString();
  378. }
  379. // row8
  380. if (listView1.Items.Count > 7)
  381. {
  382. frm.item8.Text = listView1.Items[7].SubItems[0].Text.ToString();
  383. frm.qt8.Text = listView1.Items[7].SubItems[1].Text.ToString();
  384. frm.size9.Text = listView1.Items[7].SubItems[2].Text.ToString();
  385. frm.price8.Text = listView1.Items[7].SubItems[3].Text.ToString();
  386. }
  387. else
  388. {
  389.  
  390. break;
  391. }
  392. }
  393.  
  394.  
  395.  
  396.  
  397. this.Hide();
  398. frm.Show();
  399.  
  400. }
  401.  
  402.  
  403.  
  404.  
  405.  
  406. }
  407.  
  408.  
  409. private void amount_KeyPress(object sender, KeyPressEventArgs e)
  410. {
  411. if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) &&
  412. (e.KeyChar != '.'))
  413. {
  414. e.Handled = true;
  415. }
  416.  
  417. // only allow one decimal point
  418. if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1))
  419. {
  420. e.Handled = true;
  421. }
  422. }
  423.  
  424.  
  425.  
  426. private void button5_Click(object sender, EventArgs e)
  427. {
  428. tabControl1.SelectTab(4);
  429. }
  430.  
  431. private void button4_Click_1(object sender, EventArgs e)
  432. {
  433. tabControl1.SelectTab(0);
  434. }
  435.  
  436. private void panel1_Paint(object sender, PaintEventArgs e)
  437. {
  438.  
  439. }
  440.  
  441. private void button4_Click(object sender, EventArgs e)
  442. {
  443. if (Q1.SelectedItem == null)
  444. {
  445. MessageBox.Show("Please select an item", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  446. }
  447. else
  448. {
  449. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  450.  
  451.  
  452. if (dialogResult == DialogResult.Yes)
  453. {
  454. add(CEggdesal.Text, Q1.Text, reg2.Text, price2.Text);
  455. }
  456. else if (dialogResult == DialogResult.No)
  457. {
  458.  
  459. }
  460. }
  461.  
  462. }
  463. private void Q1_SelectedIndexChanged(object sender, EventArgs e)
  464. {
  465.  
  466. if (Q1.SelectedIndex == 0)
  467. {
  468. Int32 haha = a * cheesyeggdesal;
  469. price2.Text = Convert.ToString(haha * 1.12);
  470.  
  471. }
  472. if (Q1.SelectedIndex == 1)
  473. {
  474. Int32 haha = b * cheesyeggdesal;
  475. price2.Text = Convert.ToString(haha * 1.12);
  476.  
  477.  
  478. }
  479. if (Q1.SelectedIndex == 2)
  480. {
  481. Int32 haha = c * cheesyeggdesal;
  482. price2.Text = Convert.ToString(haha * 1.12);
  483.  
  484. }
  485. if (Q1.SelectedIndex == 3)
  486. {
  487. Int32 haha = d * cheesyeggdesal;
  488. price2.Text = Convert.ToString(haha * 1.12);
  489.  
  490.  
  491. }
  492. if (Q1.SelectedIndex == 4)
  493. {
  494. Int32 haha = E * cheesyeggdesal;
  495. price2.Text = Convert.ToString(haha * 1.12);
  496.  
  497.  
  498. }
  499.  
  500.  
  501. }
  502.  
  503.  
  504.  
  505.  
  506. private void comboBox1_SelectedIndexChanged_1(object sender, EventArgs e)
  507. {
  508. if (comboBox1.SelectedIndex == 0)
  509. {
  510. Int32 haha = a * chicken;
  511. price1.Text = Convert.ToString(haha * 1.12);
  512.  
  513. }
  514. if (comboBox1.SelectedIndex == 1)
  515. {
  516. Int32 haha = b * chicken;
  517. price1.Text = Convert.ToString(haha * 1.12);
  518.  
  519. }
  520. if (comboBox1.SelectedIndex == 2)
  521. {
  522. Int32 haha = c * chicken;
  523. price1.Text = Convert.ToString(haha * 1.12);
  524.  
  525. }
  526. if (comboBox1.SelectedIndex == 3)
  527. {
  528. Int32 haha = d * chicken;
  529. price1.Text = Convert.ToString(haha * 1.12);
  530.  
  531. }
  532. if (comboBox1.SelectedIndex == 4)
  533. {
  534. Int32 haha = E * chicken;
  535. price1.Text = Convert.ToString(haha * 1.12);
  536. }
  537. }
  538.  
  539. private void Q3_SelectedIndexChanged(object sender, EventArgs e)
  540. {
  541. if (Q3.SelectedIndex == 0)
  542. {
  543. Int32 haha = a * hotcake;
  544. price3.Text = Convert.ToString(haha * 1.12);
  545.  
  546.  
  547.  
  548. }
  549. if (Q3.SelectedIndex == 1)
  550. {
  551. Int32 haha = b * hotcake;
  552. price3.Text = Convert.ToString(haha * 1.12);
  553.  
  554.  
  555.  
  556. }
  557. if (Q3.SelectedIndex == 2)
  558. {
  559. Int32 haha = c * hotcake;
  560. price3.Text = Convert.ToString(haha * 1.12);
  561.  
  562.  
  563.  
  564. }
  565. if (Q3.SelectedIndex == 3)
  566. {
  567. Int32 haha = d * hotcake;
  568. price3.Text = Convert.ToString(haha * 1.12);
  569.  
  570.  
  571.  
  572. }
  573. if (Q3.SelectedIndex == 4)
  574. {
  575. Int32 haha = E * hotcake;
  576. price3.Text = Convert.ToString(haha * 1.12);
  577.  
  578.  
  579. }
  580. }
  581. private void button5_Click_1(object sender, EventArgs e)
  582. {
  583. if (Q3.SelectedItem == null)
  584. {
  585. MessageBox.Show("Please select an item", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  586. }
  587. else
  588. {
  589. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  590.  
  591. if (dialogResult == DialogResult.Yes)
  592. {
  593. add(hotcakee.Text, Q3.Text, reg3.Text, price3.Text);
  594. }
  595. else if (dialogResult == DialogResult.No)
  596. {
  597. }
  598. }
  599. }
  600.  
  601. private void button3_Click(object sender, EventArgs e)
  602. {
  603. foreach (ListViewItem item in listView1.Items)
  604. if (item.Selected)
  605. {
  606. listView1.Items.Remove(item);
  607. change.Text = "0";
  608. total.Text = "0";
  609.  
  610. }
  611. double value = 0;
  612.  
  613. for (int i = 0; i < listView1.Items.Count; i++)
  614. {
  615. value += double.Parse(listView1.Items[i].SubItems[3].Text);
  616. }
  617.  
  618.  
  619. if (listView1.Items.Count == 0)
  620. {
  621. total.Text = "0";
  622. }
  623.  
  624. }
  625.  
  626. private void Q5_SelectedIndexChanged(object sender, EventArgs e)
  627. {
  628. if (Q5.SelectedIndex == 0)
  629. {
  630. Int32 haha = a * nbreakfast;
  631. price4.Text = Convert.ToString(haha * 1.12);
  632.  
  633. }
  634. if (Q5.SelectedIndex == 1)
  635. {
  636. Int32 haha = b * nbreakfast;
  637. price4.Text = Convert.ToString(haha * 1.12);
  638.  
  639.  
  640. }
  641. if (Q5.SelectedIndex == 2)
  642. {
  643. Int32 haha = c * nbreakfast;
  644. price4.Text = Convert.ToString(haha * 1.12);
  645.  
  646.  
  647. }
  648. if (Q5.SelectedIndex == 3)
  649. {
  650. Int32 haha = d * nbreakfast;
  651. price4.Text = Convert.ToString(haha * 1.12);
  652.  
  653.  
  654. }
  655. if (Q5.SelectedIndex == 4)
  656. {
  657. Int32 haha = E * nbreakfast;
  658. price4.Text = Convert.ToString(haha * 1.12);
  659.  
  660. }
  661. }
  662.  
  663. private void button6_Click(object sender, EventArgs e)
  664. {
  665. if (Q5.SelectedItem == null)
  666. {
  667. MessageBox.Show("Please select an item", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  668. }
  669. else
  670. {
  671.  
  672. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  673. if (dialogResult == DialogResult.Yes)
  674. {
  675. add(NBreakfast.Text, Q5.Text, reg4.Text, price4.Text);
  676. }
  677. else if (dialogResult == DialogResult.No)
  678. {
  679. }
  680. }
  681. }
  682.  
  683.  
  684. private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
  685. {
  686.  
  687. double value = 0;
  688.  
  689. for (int i = 0; i < listView1.Items.Count; i++)
  690. {
  691. value += double.Parse(listView1.Items[i].SubItems[3].Text);
  692. }
  693.  
  694.  
  695. total.Text = Convert.ToString(value);
  696. discounttext.Text = Convert.ToString(value);
  697. }
  698.  
  699. private void tabPage1_Click(object sender, EventArgs e)
  700. {
  701.  
  702. }
  703.  
  704. private void button37_Click(object sender, EventArgs e)
  705. {
  706.  
  707.  
  708. if (string.IsNullOrEmpty(amount.Text))
  709. {
  710. MessageBox.Show("Please input the amount.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
  711.  
  712. }
  713. else if (total.Text == "0")
  714. {
  715. MessageBox.Show("Please get the total first", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  716. }
  717. else if (Convert.ToDouble(amount.Text) < Convert.ToDouble(total.Text))
  718. {
  719. MessageBox.Show("You dont have enough money.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
  720. }
  721. else
  722. {
  723. Random slumpGenerator = new Random();
  724. int tal = slumpGenerator.Next(0, 98675434);
  725. ORNUMBER.Text = "10000" + tal.ToString();
  726.  
  727. change.Text = (double.Parse(amount.Text) - double.Parse(total.Text)).ToString();
  728. }
  729. }
  730.  
  731. private void pictureBox7_Click(object sender, EventArgs e)
  732. {
  733. size1.Show();
  734. Q8.Show();
  735.  
  736. }
  737.  
  738. private void button35_Click(object sender, EventArgs e)
  739. {
  740. tabControl1.SelectTab(2);
  741. }
  742.  
  743. private void button34_Click(object sender, EventArgs e)
  744. {
  745. tabControl1.SelectTab(1);
  746. }
  747.  
  748. private void button36_Click(object sender, EventArgs e)
  749. {
  750. tabControl1.SelectTab(3);
  751. }
  752.  
  753. private void panel4_Paint(object sender, PaintEventArgs e)
  754. {
  755.  
  756. }
  757.  
  758. private void button33_Click_1(object sender, EventArgs e)
  759. {
  760. tabControl1.SelectTab(0);
  761. }
  762.  
  763. private void button38_Click(object sender, EventArgs e)
  764. {
  765. tabControl1.SelectTab(4);
  766. }
  767.  
  768. private void amount_TextChanged(object sender, EventArgs e)
  769. {
  770.  
  771. }
  772.  
  773. private void Q7_SelectedIndexChanged(object sender, EventArgs e)
  774. {
  775. if (Q7.SelectedIndex == 0)
  776. {
  777. Int32 haha = a * spRice;
  778. price5.Text = Convert.ToString(haha * 1.12);
  779.  
  780. }
  781. if (Q7.SelectedIndex == 1)
  782. {
  783. Int32 haha = b * spRice;
  784. price5.Text = Convert.ToString(haha * 1.12);
  785.  
  786.  
  787. }
  788. if (Q7.SelectedIndex == 2)
  789. {
  790. Int32 haha = c * spRice;
  791. price5.Text = Convert.ToString(haha * 1.12);
  792.  
  793.  
  794. }
  795. if (Q7.SelectedIndex == 3)
  796. {
  797. Int32 haha = d * spRice;
  798. price5.Text = Convert.ToString(haha * 1.12);
  799.  
  800.  
  801. }
  802. if (Q7.SelectedIndex == 4)
  803. {
  804. Int32 haha = E * spRice;
  805. price5.Text = Convert.ToString(haha * 1.12);
  806.  
  807. }
  808. }
  809.  
  810. private void button7_Click(object sender, EventArgs e)
  811. {
  812. if (Q7.SelectedItem == null)
  813. {
  814. MessageBox.Show("Please select an item", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  815. }
  816. else
  817. {
  818.  
  819. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  820. if (dialogResult == DialogResult.Yes)
  821. {
  822. add(sprice1.Text, Q7.Text, reg5.Text, price5.Text);
  823. }
  824. else if (dialogResult == DialogResult.No)
  825. {
  826. }
  827. }
  828. }
  829.  
  830. private void size1_SelectedIndexChanged(object sender, EventArgs e)
  831. {
  832. if (size1.SelectedIndex == 0)
  833. {
  834.  
  835. price6.Text = Convert.ToString(filletrice * 1.12);
  836. sample.Text = Convert.ToString(filletrice);
  837.  
  838. }
  839. if (size1.SelectedIndex == 1)
  840. {
  841.  
  842. price6.Text = Convert.ToString(mediumfillet * 1.12);
  843. sample.Text = Convert.ToString(mediumfillet);
  844.  
  845. }
  846. if (size1.SelectedIndex == 2)
  847. {
  848.  
  849. price6.Text = Convert.ToString(largefillet * 1.12);
  850. sample.Text = Convert.ToString(largefillet);
  851.  
  852. }
  853. }
  854.  
  855. private void Q8_SelectedIndexChanged(object sender, EventArgs e)
  856. {
  857. if (size1.SelectedItem == null)
  858. {
  859. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  860. }
  861.  
  862. else if (Q8.SelectedIndex == 0)
  863. {
  864.  
  865. Int32 haha = a * Convert.ToInt32(sample.Text);
  866. price6.Text = Convert.ToString(haha * 1.12);
  867.  
  868. }
  869. else if (Q8.SelectedIndex == 1)
  870. {
  871. Int32 haha = b * Convert.ToInt32(sample.Text);
  872. price6.Text = Convert.ToString(haha * 1.12);
  873. }
  874. else if (Q8.SelectedIndex == 2)
  875. {
  876. Int32 haha = c * Convert.ToInt32(sample.Text);
  877. price6.Text = Convert.ToString(haha * 1.12);
  878.  
  879.  
  880. }
  881. else if (Q8.SelectedIndex == 3)
  882. {
  883. Int32 haha = d * Convert.ToInt32(sample.Text);
  884. price6.Text = Convert.ToString(haha * 1.12);
  885.  
  886. }
  887. else if (Q8.SelectedIndex == 4)
  888. {
  889. Int32 haha = E * Convert.ToInt32(sample.Text);
  890. price6.Text = Convert.ToString(haha * 1.12);
  891. }
  892. }
  893.  
  894. private void sample_Click(object sender, EventArgs e)
  895. {
  896.  
  897. }
  898.  
  899. private void button8_Click(object sender, EventArgs e)
  900. {
  901.  
  902. if (Q8.SelectedItem == null)
  903. {
  904. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  905. }
  906. else if (size1.SelectedItem == null)
  907. {
  908. MessageBox.Show("Please select a size first", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  909. }
  910.  
  911.  
  912. else
  913. {
  914.  
  915. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  916. if (dialogResult == DialogResult.Yes)
  917. {
  918. add(label30.Text, Q8.Text, size1.Text, price6.Text);
  919. }
  920. else if (dialogResult == DialogResult.No)
  921. {
  922. }
  923. }
  924. }
  925.  
  926. private void comboBox24_SelectedIndexChanged(object sender, EventArgs e)
  927. {
  928. if (comboBox24.SelectedIndex == 0)
  929. {
  930. Int32 haha = a * mcsaverspaghetti;
  931. price7.Text = Convert.ToString(haha * 1.12);
  932.  
  933. }
  934. if (comboBox24.SelectedIndex == 1)
  935. {
  936. Int32 haha = b * mcsaverspaghetti;
  937. price7.Text = Convert.ToString(haha * 1.12);
  938.  
  939. }
  940. if (comboBox24.SelectedIndex == 2)
  941. {
  942. Int32 haha = c * mcsaverspaghetti;
  943. price7.Text = Convert.ToString(haha * 1.12);
  944.  
  945. }
  946. if (comboBox24.SelectedIndex == 3)
  947. {
  948. Int32 haha = d * mcsaverspaghetti;
  949. price7.Text = Convert.ToString(haha * 1.12);
  950.  
  951. }
  952. if (comboBox24.SelectedIndex == 4)
  953. {
  954. Int32 haha = E * mcsaverspaghetti;
  955. price7.Text = Convert.ToString(haha * 1.12);
  956. }
  957. }
  958.  
  959. private void comboBox22_SelectedIndexChanged(object sender, EventArgs e)
  960. {
  961. if (comboBox22.SelectedIndex == 0)
  962. {
  963. Int32 haha = a * chicsphag;
  964. price8.Text = Convert.ToString(haha * 1.12);
  965.  
  966. }
  967. if (comboBox22.SelectedIndex == 1)
  968. {
  969. Int32 haha = b * chicsphag;
  970. price8.Text = Convert.ToString(haha * 1.12);
  971.  
  972. }
  973. if (comboBox22.SelectedIndex == 2)
  974. {
  975. Int32 haha = c * chicsphag;
  976. price8.Text = Convert.ToString(haha * 1.12);
  977.  
  978. }
  979. if (comboBox22.SelectedIndex == 3)
  980. {
  981. Int32 haha = d * chicsphag;
  982. price8.Text = Convert.ToString(haha * 1.12);
  983.  
  984. }
  985. if (comboBox22.SelectedIndex == 4)
  986. {
  987. Int32 haha = E * chicsphag;
  988. price8.Text = Convert.ToString(haha * 1.12);
  989. }
  990. }
  991.  
  992. private void comboBox20_SelectedIndexChanged(object sender, EventArgs e)
  993. {
  994. if (comboBox20.SelectedIndex == 0)
  995. {
  996. Int32 haha = a * cmfries;
  997. price9.Text = Convert.ToString(haha * 1.12);
  998.  
  999. }
  1000. if (comboBox20.SelectedIndex == 1)
  1001. {
  1002. Int32 haha = b * cmfries;
  1003. price9.Text = Convert.ToString(haha * 1.12);
  1004.  
  1005. }
  1006. if (comboBox20.SelectedIndex == 2)
  1007. {
  1008. Int32 haha = c * cmfries;
  1009. price9.Text = Convert.ToString(haha * 1.12);
  1010.  
  1011. }
  1012. if (comboBox20.SelectedIndex == 3)
  1013. {
  1014. Int32 haha = d * cmfries;
  1015. price9.Text = Convert.ToString(haha * 1.12);
  1016.  
  1017. }
  1018. if (comboBox20.SelectedIndex == 4)
  1019. {
  1020. Int32 haha = E * cmfries;
  1021. price9.Text = Convert.ToString(haha * 1.12);
  1022. }
  1023. }
  1024.  
  1025. private void comboBox18_SelectedIndexChanged(object sender, EventArgs e)
  1026. {
  1027. if (comboBox18.SelectedIndex == 0)
  1028. {
  1029. Int32 haha = a * mcnuggets10;
  1030. price10.Text = Convert.ToString(haha * 1.12);
  1031.  
  1032. }
  1033. if (comboBox18.SelectedIndex == 1)
  1034. {
  1035. Int32 haha = b * mcnuggets10;
  1036. price10.Text = Convert.ToString(haha * 1.12);
  1037.  
  1038. }
  1039. if (comboBox18.SelectedIndex == 2)
  1040. {
  1041. Int32 haha = c * mcnuggets10;
  1042. price10.Text = Convert.ToString(haha * 1.12);
  1043.  
  1044. }
  1045. if (comboBox18.SelectedIndex == 3)
  1046. {
  1047. Int32 haha = d * mcnuggets10;
  1048. price10.Text = Convert.ToString(haha * 1.12);
  1049.  
  1050. }
  1051. if (comboBox18.SelectedIndex == 4)
  1052. {
  1053. Int32 haha = E * mcnuggets10;
  1054. price10.Text = Convert.ToString(haha * 1.12);
  1055. }
  1056. }
  1057.  
  1058. private void comboBox16_SelectedIndexChanged(object sender, EventArgs e)
  1059. {
  1060. if (comboBox16.SelectedIndex == 0)
  1061. {
  1062. Int32 haha = a * chickmcdo2;
  1063. price11.Text = Convert.ToString(haha * 1.12);
  1064.  
  1065. }
  1066. if (comboBox16.SelectedIndex == 1)
  1067. {
  1068. Int32 haha = b * chickmcdo2;
  1069. price11.Text = Convert.ToString(haha * 1.12);
  1070.  
  1071. }
  1072. if (comboBox16.SelectedIndex == 2)
  1073. {
  1074. Int32 haha = c * chickmcdo2;
  1075. price11.Text = Convert.ToString(haha * 1.12);
  1076.  
  1077. }
  1078. if (comboBox16.SelectedIndex == 3)
  1079. {
  1080. Int32 haha = d * chickmcdo2;
  1081. price11.Text = Convert.ToString(haha * 1.12);
  1082.  
  1083. }
  1084. if (comboBox16.SelectedIndex == 4)
  1085. {
  1086. Int32 haha = E * chickmcdo2;
  1087. price11.Text = Convert.ToString(haha * 1.12);
  1088. }
  1089. }
  1090.  
  1091. private void button14_Click(object sender, EventArgs e)
  1092. {
  1093. if (comboBox24.SelectedItem == null)
  1094. {
  1095. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1096. }
  1097. else
  1098. {
  1099.  
  1100. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1101. if (dialogResult == DialogResult.Yes)
  1102. {
  1103. add(label58.Text, comboBox24.Text, reg1.Text, price7.Text);
  1104. }
  1105. else if (dialogResult == DialogResult.No)
  1106. {
  1107. }
  1108. }
  1109.  
  1110.  
  1111.  
  1112. }
  1113.  
  1114. private void button13_Click(object sender, EventArgs e)
  1115. {
  1116. if (comboBox22.SelectedItem == null)
  1117. {
  1118. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1119. }
  1120. else
  1121. {
  1122.  
  1123. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1124. if (dialogResult == DialogResult.Yes)
  1125. {
  1126. add(hm1.Text, comboBox22.Text, reg1.Text, price8.Text);
  1127. }
  1128. else if (dialogResult == DialogResult.No)
  1129. {
  1130. }
  1131. }
  1132. }
  1133.  
  1134. private void button12_Click(object sender, EventArgs e)
  1135. {
  1136. if (comboBox20.SelectedItem == null)
  1137. {
  1138. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1139. }
  1140. else
  1141. {
  1142.  
  1143. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1144. if (dialogResult == DialogResult.Yes)
  1145. {
  1146. add(hm2.Text, comboBox20.Text, reg1.Text, price9.Text);
  1147. }
  1148. else if (dialogResult == DialogResult.No)
  1149. {
  1150. }
  1151. }
  1152. }
  1153.  
  1154. private void button11_Click(object sender, EventArgs e)
  1155. {
  1156. if (comboBox18.SelectedItem == null)
  1157. {
  1158. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1159. }
  1160. else
  1161. {
  1162.  
  1163. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1164. if (dialogResult == DialogResult.Yes)
  1165. {
  1166. add(hm3.Text, comboBox18.Text, reg1.Text, price10.Text);
  1167. }
  1168. else if (dialogResult == DialogResult.No)
  1169. {
  1170. }
  1171. }
  1172. }
  1173.  
  1174. private void button10_Click(object sender, EventArgs e)
  1175. {
  1176. if (comboBox16.SelectedItem == null)
  1177. {
  1178. MessageBox.Show("Please select a Quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1179. }
  1180. else
  1181. {
  1182.  
  1183. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1184. if (dialogResult == DialogResult.Yes)
  1185. {
  1186. add(hm4.Text, comboBox16.Text, reg1.Text, price11.Text);
  1187. }
  1188. else if (dialogResult == DialogResult.No)
  1189. {
  1190. }
  1191. }
  1192. }
  1193.  
  1194. private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  1195. {
  1196. total.Text = "0";
  1197. ORNUMBER.Text = "0";
  1198. amount.Text = "";
  1199. change.Text = "0";
  1200. discount1.Text = "0";
  1201. }
  1202.  
  1203.  
  1204.  
  1205.  
  1206. private void tabPage1_MouseEnter(object sender, EventArgs e)
  1207. {
  1208. double value = 0;
  1209.  
  1210. for (int i = 0; i < listView1.Items.Count; i++)
  1211. {
  1212. if (listView1.Items.Count > 0)
  1213. {
  1214. value += double.Parse(listView1.Items[i].SubItems[3].Text);
  1215. }
  1216. }
  1217. }
  1218.  
  1219. private void comboBox47_SelectedIndexChanged(object sender, EventArgs e)
  1220. {
  1221. if (comboBox47.SelectedIndex == 0)
  1222. {
  1223.  
  1224. cafe1.Text = Convert.ToString(mccafesmall);
  1225. cafee1.Text = Convert.ToString(mccafesmall);
  1226.  
  1227.  
  1228.  
  1229. }
  1230. if (comboBox47.SelectedIndex == 1)
  1231. {
  1232.  
  1233. cafe1.Text = Convert.ToString(mccafemedium);
  1234. cafee1.Text = Convert.ToString(mccafemedium);
  1235. comboBox48.Text = "";
  1236. cafe1.Text = "";
  1237. }
  1238. }
  1239.  
  1240. private void comboBox48_SelectedIndexChanged(object sender, EventArgs e)
  1241. {
  1242. if (comboBox48.SelectedItem == null)
  1243. {
  1244. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1245. }
  1246. else if (comboBox47.SelectedItem == null)
  1247. {
  1248. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1249. }
  1250. else if (comboBox48.SelectedIndex == 0)
  1251. {
  1252.  
  1253. Int32 haha = a * Convert.ToInt32(cafee1.Text);
  1254. cafe1.Text = Convert.ToString(haha);
  1255.  
  1256. }
  1257. else if (comboBox48.SelectedIndex == 1)
  1258. {
  1259. Int32 haha = b * Convert.ToInt32(cafee1.Text);
  1260. cafe1.Text = Convert.ToString(haha);
  1261. }
  1262. else if (comboBox48.SelectedIndex == 2)
  1263. {
  1264. Int32 haha = c * Convert.ToInt32(cafee1.Text);
  1265. cafe1.Text = Convert.ToString(haha);
  1266.  
  1267.  
  1268. }
  1269. else if (comboBox48.SelectedIndex == 3)
  1270. {
  1271. Int32 haha = d * Convert.ToInt32(cafee1.Text);
  1272. cafe1.Text = Convert.ToString(haha);
  1273.  
  1274. }
  1275. else if (comboBox48.SelectedIndex == 4)
  1276. {
  1277. Int32 haha = E * Convert.ToInt32(cafee1.Text);
  1278. cafe1.Text = Convert.ToString(haha);
  1279. }
  1280. }
  1281.  
  1282. private void button20_Click(object sender, EventArgs e)
  1283. {
  1284. if (comboBox48.SelectedItem == null)
  1285. {
  1286. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1287. }
  1288. else if (comboBox48.SelectedItem == null)
  1289. {
  1290. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1291. }
  1292. else if (comboBox47.SelectedItem == null)
  1293. {
  1294. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1295. }
  1296.  
  1297. else
  1298. {
  1299. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  1300.  
  1301.  
  1302. if (dialogResult == DialogResult.Yes)
  1303. {
  1304. add(label116.Text, comboBox48.Text, comboBox47.Text, cafe1.Text);
  1305. }
  1306. else if (dialogResult == DialogResult.No)
  1307. {
  1308.  
  1309. }
  1310. }
  1311. }
  1312.  
  1313. private void comboBox45_SelectedIndexChanged(object sender, EventArgs e)
  1314. {
  1315. if (comboBox45.SelectedIndex == 0)
  1316. {
  1317.  
  1318. cafe2.Text = Convert.ToString(mccoffefloat);
  1319.  
  1320. }
  1321. }
  1322.  
  1323. private void comboBox46_SelectedIndexChanged(object sender, EventArgs e)
  1324. {
  1325.  
  1326. if (comboBox46.SelectedItem == null)
  1327. {
  1328. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1329. }
  1330. else if (comboBox45.SelectedItem == null)
  1331. {
  1332. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1333. }
  1334.  
  1335. else if (comboBox46.SelectedIndex == 0)
  1336. {
  1337. Int32 haha = a * mccoffefloat;
  1338. cafe2.Text = Convert.ToString(haha);
  1339.  
  1340. }
  1341. else if (comboBox46.SelectedIndex == 1)
  1342. {
  1343. Int32 haha = b * mccoffefloat;
  1344. cafe2.Text = Convert.ToString(haha);
  1345.  
  1346.  
  1347. }
  1348. else if (comboBox46.SelectedIndex == 2)
  1349. {
  1350. Int32 haha = c * mccoffefloat;
  1351. cafe2.Text = Convert.ToString(haha);
  1352.  
  1353. }
  1354. else if (comboBox46.SelectedIndex == 3)
  1355. {
  1356. Int32 haha = d * mccoffefloat;
  1357. cafe2.Text = Convert.ToString(haha);
  1358.  
  1359.  
  1360. }
  1361. else if (comboBox46.SelectedIndex == 4)
  1362. {
  1363. Int32 haha = E * mccoffefloat;
  1364. cafe2.Text = Convert.ToString(haha);
  1365.  
  1366.  
  1367. }
  1368. }
  1369.  
  1370. private void comboBox43_SelectedIndexChanged(object sender, EventArgs e)
  1371. {
  1372. if (comboBox43.SelectedIndex == 0)
  1373. {
  1374.  
  1375. cafe3.Text = Convert.ToString(cokefloat);
  1376. cafee3.Text = Convert.ToString(cokefloat);
  1377.  
  1378.  
  1379. }
  1380. if (comboBox43.SelectedIndex == 1)
  1381. {
  1382.  
  1383. cafe3.Text = Convert.ToString(cokefloatlarge);
  1384. cafee3.Text = Convert.ToString(cokefloatlarge);
  1385.  
  1386. }
  1387. }
  1388.  
  1389. private void comboBox44_SelectedIndexChanged(object sender, EventArgs e)
  1390. {
  1391. if (comboBox44.SelectedItem == null)
  1392. {
  1393. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1394. }
  1395. else if (comboBox43.SelectedItem == null)
  1396. {
  1397. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1398. }
  1399. else if (comboBox44.SelectedIndex == 0)
  1400. {
  1401.  
  1402. Int32 haha = a * Convert.ToInt32(cafee3.Text);
  1403. cafe3.Text = Convert.ToString(haha);
  1404.  
  1405. }
  1406. else if (comboBox44.SelectedIndex == 1)
  1407. {
  1408. Int32 haha = b * Convert.ToInt32(cafee3.Text);
  1409. cafe3.Text = Convert.ToString(haha);
  1410. }
  1411. else if (comboBox44.SelectedIndex == 2)
  1412. {
  1413. Int32 haha = c * Convert.ToInt32(cafee3.Text);
  1414. cafe3.Text = Convert.ToString(haha);
  1415.  
  1416.  
  1417. }
  1418. else if (comboBox44.SelectedIndex == 3)
  1419. {
  1420. Int32 haha = d * Convert.ToInt32(cafee3.Text);
  1421. cafe3.Text = Convert.ToString(haha);
  1422.  
  1423. }
  1424. else if (comboBox44.SelectedIndex == 4)
  1425. {
  1426. Int32 haha = E * Convert.ToInt32(cafee3.Text);
  1427. cafe3.Text = Convert.ToString(haha);
  1428. }
  1429. }
  1430.  
  1431. private void comboBox41_SelectedIndexChanged(object sender, EventArgs e)
  1432. {
  1433. if (comboBox41.SelectedIndex == 0)
  1434. {
  1435.  
  1436. cafe4.Text = Convert.ToString(spritemedium);
  1437. cafee4.Text = Convert.ToString(spritemedium);
  1438.  
  1439.  
  1440. }
  1441. if (comboBox41.SelectedIndex == 1)
  1442. {
  1443.  
  1444. cafe4.Text = Convert.ToString(spritelarge);
  1445. cafee4.Text = Convert.ToString(spritelarge);
  1446.  
  1447. }
  1448. }
  1449.  
  1450. private void comboBox42_SelectedIndexChanged(object sender, EventArgs e)
  1451. {
  1452. if (comboBox42.SelectedItem == null)
  1453. {
  1454. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1455. }
  1456.  
  1457. else if (comboBox41.SelectedItem == null)
  1458. {
  1459. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1460. }
  1461. else if (comboBox42.SelectedIndex == 0)
  1462. {
  1463.  
  1464. Int32 haha = a * Convert.ToInt32(cafee4.Text);
  1465. cafe4.Text = Convert.ToString(haha);
  1466.  
  1467. }
  1468. else if (comboBox42.SelectedIndex == 1)
  1469. {
  1470. Int32 haha = b * Convert.ToInt32(cafee4.Text);
  1471. cafe4.Text = Convert.ToString(haha);
  1472. }
  1473. else if (comboBox42.SelectedIndex == 2)
  1474. {
  1475. Int32 haha = c * Convert.ToInt32(cafee4.Text);
  1476. cafe4.Text = Convert.ToString(haha);
  1477.  
  1478.  
  1479. }
  1480. else if (comboBox42.SelectedIndex == 3)
  1481. {
  1482. Int32 haha = d * Convert.ToInt32(cafee4.Text);
  1483. cafe4.Text = Convert.ToString(haha);
  1484.  
  1485. }
  1486. else if (comboBox42.SelectedIndex == 4)
  1487. {
  1488. Int32 haha = E * Convert.ToInt32(cafee4.Text);
  1489. cafe4.Text = Convert.ToString(haha);
  1490. }
  1491. }
  1492.  
  1493. private void comboBox39_SelectedIndexChanged(object sender, EventArgs e)
  1494. {
  1495.  
  1496. if (comboBox39.SelectedIndex == 0)
  1497. {
  1498.  
  1499. cafe5.Text = Convert.ToString(capuccinoS);
  1500. cafee5.Text = Convert.ToString(capuccinoS);
  1501.  
  1502. }
  1503. if (comboBox39.SelectedIndex == 1)
  1504. {
  1505.  
  1506.  
  1507. cafe5.Text = Convert.ToString(capuccinoM);
  1508. cafee5.Text = Convert.ToString(capuccinoM);
  1509.  
  1510. }
  1511. }
  1512.  
  1513. private void tabPage4_Click(object sender, EventArgs e)
  1514. {
  1515.  
  1516. }
  1517.  
  1518. private void comboBox40_SelectedIndexChanged(object sender, EventArgs e)
  1519. {
  1520. if (comboBox40.SelectedItem == null)
  1521. {
  1522. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1523. }
  1524. else if (comboBox39.SelectedItem == null)
  1525. {
  1526. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1527. }
  1528. else if (comboBox40.SelectedIndex == 0)
  1529. {
  1530.  
  1531. Int32 haha = a * Convert.ToInt32(cafee5.Text);
  1532. cafe5.Text = Convert.ToString(haha);
  1533.  
  1534. }
  1535. else if (comboBox40.SelectedIndex == 1)
  1536. {
  1537. Int32 haha = b * Convert.ToInt32(cafee5.Text);
  1538. cafe5.Text = Convert.ToString(haha);
  1539. }
  1540. else if (comboBox40.SelectedIndex == 2)
  1541. {
  1542. Int32 haha = c * Convert.ToInt32(cafee5.Text);
  1543. cafe5.Text = Convert.ToString(haha);
  1544.  
  1545.  
  1546. }
  1547. else if (comboBox40.SelectedIndex == 3)
  1548. {
  1549. Int32 haha = d * Convert.ToInt32(cafee5.Text);
  1550. cafe5.Text = Convert.ToString(haha);
  1551.  
  1552. }
  1553. else if (comboBox40.SelectedIndex == 4)
  1554. {
  1555. Int32 haha = E * Convert.ToInt32(cafee5.Text);
  1556. cafe5.Text = Convert.ToString(haha);
  1557. }
  1558. }
  1559.  
  1560. private void comboBox35_SelectedIndexChanged(object sender, EventArgs e)
  1561. {
  1562. if (comboBox35.SelectedIndex == 0)
  1563. {
  1564.  
  1565. burger1.Text = Convert.ToString(bigmacM);
  1566. burgerr1.Text = Convert.ToString(bigmacM);
  1567.  
  1568.  
  1569.  
  1570. }
  1571. if (comboBox35.SelectedIndex == 1)
  1572. {
  1573.  
  1574. burger1.Text = Convert.ToString(bigmacL);
  1575. burgerr1.Text = Convert.ToString(bigmacL);
  1576.  
  1577. }
  1578. }
  1579.  
  1580. private void comboBox36_SelectedIndexChanged(object sender, EventArgs e)
  1581. {
  1582. if (comboBox36.SelectedItem == null)
  1583. {
  1584. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1585. }
  1586. else if (comboBox35.SelectedItem == null)
  1587. {
  1588. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1589.  
  1590. }
  1591. else if (comboBox36.SelectedIndex == 0)
  1592. {
  1593.  
  1594. Int32 haha = a * Convert.ToInt32(burgerr1.Text);
  1595. burger1.Text = Convert.ToString(haha);
  1596.  
  1597. }
  1598. else if (comboBox36.SelectedIndex == 1)
  1599. {
  1600. Int32 haha = b * Convert.ToInt32(burgerr1.Text);
  1601. burger1.Text = Convert.ToString(haha);
  1602. }
  1603. else if (comboBox36.SelectedIndex == 2)
  1604. {
  1605. Int32 haha = c * Convert.ToInt32(burgerr1.Text);
  1606. burger1.Text = Convert.ToString(haha);
  1607.  
  1608.  
  1609. }
  1610. else if (comboBox36.SelectedIndex == 3)
  1611. {
  1612. Int32 haha = d * Convert.ToInt32(burgerr1.Text);
  1613. burger1.Text = Convert.ToString(haha);
  1614.  
  1615. }
  1616. else if (comboBox36.SelectedIndex == 4)
  1617. {
  1618. Int32 haha = E * Convert.ToInt32(burgerr1.Text);
  1619. burger1.Text = Convert.ToString(haha);
  1620. }
  1621. }
  1622.  
  1623. private void comboBox33_SelectedIndexChanged(object sender, EventArgs e)
  1624. {
  1625. if (comboBox33.SelectedIndex == 0)
  1626. {
  1627.  
  1628. burger2.Text = Convert.ToString(mcspicyM);
  1629. burgerr2.Text = Convert.ToString(mcspicyM);
  1630.  
  1631.  
  1632. }
  1633. if (comboBox33.SelectedIndex == 1)
  1634. {
  1635.  
  1636. burger2.Text = Convert.ToString(mcspicyL);
  1637. burgerr2.Text = Convert.ToString(mcspicyL);
  1638.  
  1639. }
  1640. }
  1641.  
  1642. private void comboBox34_SelectedIndexChanged(object sender, EventArgs e)
  1643. {
  1644. if (comboBox34.SelectedItem == null)
  1645. {
  1646. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1647. }
  1648. else if (comboBox33.SelectedItem == null)
  1649. {
  1650. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1651. }
  1652. else if (comboBox34.SelectedIndex == 0)
  1653. {
  1654.  
  1655. Int32 haha = a * Convert.ToInt32(burgerr2.Text);
  1656. burger2.Text = Convert.ToString(haha);
  1657.  
  1658. }
  1659. else if (comboBox34.SelectedIndex == 1)
  1660. {
  1661. Int32 haha = b * Convert.ToInt32(burgerr2.Text);
  1662. burger2.Text = Convert.ToString(haha);
  1663. }
  1664. else if (comboBox34.SelectedIndex == 2)
  1665. {
  1666. Int32 haha = c * Convert.ToInt32(burgerr2.Text);
  1667. burger2.Text = Convert.ToString(haha);
  1668.  
  1669.  
  1670. }
  1671. else if (comboBox34.SelectedIndex == 3)
  1672. {
  1673. Int32 haha = d * Convert.ToInt32(burgerr2.Text);
  1674. burger2.Text = Convert.ToString(haha);
  1675.  
  1676. }
  1677. else if (comboBox34.SelectedIndex == 4)
  1678. {
  1679. Int32 haha = E * Convert.ToInt32(burgerr2.Text);
  1680. burger2.Text = Convert.ToString(haha);
  1681. }
  1682. }
  1683.  
  1684. private void comboBox31_SelectedIndexChanged(object sender, EventArgs e)
  1685. {
  1686. if (comboBox31.SelectedIndex == 0)
  1687. {
  1688.  
  1689. burger3.Text = Convert.ToString(bigntastyM);
  1690. burgerr3.Text = Convert.ToString(bigntastyM);
  1691.  
  1692.  
  1693.  
  1694. }
  1695. if (comboBox31.SelectedIndex == 1)
  1696. {
  1697.  
  1698. burger3.Text = Convert.ToString(bigntastyL);
  1699. burgerr3.Text = Convert.ToString(bigntastyL);
  1700.  
  1701. }
  1702. }
  1703.  
  1704. private void comboBox32_SelectedIndexChanged(object sender, EventArgs e)
  1705. {
  1706. if (comboBox32.SelectedItem == null)
  1707. {
  1708. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1709. }
  1710. else if (comboBox31.SelectedItem == null)
  1711. {
  1712. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1713. }
  1714. else if (comboBox32.SelectedIndex == 0)
  1715. {
  1716.  
  1717. Int32 haha = a * Convert.ToInt32(burgerr3.Text);
  1718. burger3.Text = Convert.ToString(haha);
  1719.  
  1720. }
  1721. else if (comboBox32.SelectedIndex == 1)
  1722. {
  1723. Int32 haha = b * Convert.ToInt32(burgerr3.Text);
  1724. burger3.Text = Convert.ToString(haha);
  1725. }
  1726. else if (comboBox32.SelectedIndex == 2)
  1727. {
  1728. Int32 haha = c * Convert.ToInt32(burgerr3.Text);
  1729. burger3.Text = Convert.ToString(haha);
  1730.  
  1731.  
  1732. }
  1733. else if (comboBox32.SelectedIndex == 3)
  1734. {
  1735. Int32 haha = d * Convert.ToInt32(burgerr3.Text);
  1736. burger3.Text = Convert.ToString(haha);
  1737.  
  1738. }
  1739. else if (comboBox32.SelectedIndex == 4)
  1740. {
  1741. Int32 haha = E * Convert.ToInt32(burgerr3.Text);
  1742. burger3.Text = Convert.ToString(haha);
  1743. }
  1744. }
  1745.  
  1746. private void comboBox29_SelectedIndexChanged(object sender, EventArgs e)
  1747. {
  1748. if (comboBox29.SelectedIndex == 0)
  1749. {
  1750.  
  1751. burger4.Text = Convert.ToString(cheeseburgerM);
  1752. burgerr4.Text = Convert.ToString(cheeseburgerM);
  1753.  
  1754.  
  1755.  
  1756. }
  1757. if (comboBox29.SelectedIndex == 1)
  1758. {
  1759. burger4.Text = Convert.ToString(cheeseburgerL);
  1760. burgerr4.Text = Convert.ToString(cheeseburgerL);
  1761. }
  1762. }
  1763.  
  1764. private void comboBox30_SelectedIndexChanged(object sender, EventArgs e)
  1765. {
  1766. if (comboBox30.SelectedItem == null)
  1767. {
  1768. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1769. }
  1770. else if (comboBox29.SelectedItem == null)
  1771. {
  1772. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1773. }
  1774. else if (comboBox30.SelectedIndex == 0)
  1775. {
  1776.  
  1777. Int32 haha = a * Convert.ToInt32(burgerr4.Text);
  1778. burger4.Text = Convert.ToString(haha);
  1779.  
  1780. }
  1781. else if (comboBox30.SelectedIndex == 1)
  1782. {
  1783. Int32 haha = b * Convert.ToInt32(burgerr4.Text);
  1784. burger4.Text = Convert.ToString(haha);
  1785. }
  1786. else if (comboBox30.SelectedIndex == 2)
  1787. {
  1788. Int32 haha = c * Convert.ToInt32(burgerr4.Text);
  1789. burger4.Text = Convert.ToString(haha);
  1790.  
  1791.  
  1792. }
  1793. else if (comboBox30.SelectedIndex == 3)
  1794. {
  1795. Int32 haha = d * Convert.ToInt32(burgerr4.Text);
  1796. burger4.Text = Convert.ToString(haha);
  1797.  
  1798. }
  1799. else if (comboBox30.SelectedIndex == 4)
  1800. {
  1801. Int32 haha = E * Convert.ToInt32(burgerr4.Text);
  1802. burger4.Text = Convert.ToString(haha);
  1803. }
  1804. }
  1805.  
  1806. private void comboBox27_SelectedIndexChanged(object sender, EventArgs e)
  1807. {
  1808. if (comboBox27.SelectedIndex == 0)
  1809. {
  1810.  
  1811. burger5.Text = Convert.ToString(burgerM);
  1812. burgerr5.Text = Convert.ToString(burgerM);
  1813.  
  1814.  
  1815. }
  1816. if (comboBox27.SelectedIndex == 1)
  1817. {
  1818. burger5.Text = Convert.ToString(burgerL);
  1819. burgerr5.Text = Convert.ToString(burgerL);
  1820.  
  1821. }
  1822. }
  1823.  
  1824. private void comboBox28_SelectedIndexChanged(object sender, EventArgs e)
  1825. {
  1826. if (comboBox28.SelectedItem == null)
  1827. {
  1828. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1829. }
  1830. else if (comboBox27.SelectedItem == null)
  1831. {
  1832. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1833. }
  1834. else if (comboBox28.SelectedIndex == 0)
  1835. {
  1836.  
  1837. Int32 haha = a * Convert.ToInt32(burgerr5.Text);
  1838. burger5.Text = Convert.ToString(haha);
  1839.  
  1840. }
  1841. else if (comboBox28.SelectedIndex == 1)
  1842. {
  1843. Int32 haha = b * Convert.ToInt32(burgerr5.Text);
  1844. burger5.Text = Convert.ToString(haha);
  1845. }
  1846. else if (comboBox28.SelectedIndex == 2)
  1847. {
  1848. Int32 haha = c * Convert.ToInt32(burgerr5.Text);
  1849. burger5.Text = Convert.ToString(haha);
  1850.  
  1851.  
  1852. }
  1853. else if (comboBox28.SelectedIndex == 3)
  1854. {
  1855. Int32 haha = d * Convert.ToInt32(burgerr5.Text);
  1856. burger5.Text = Convert.ToString(haha);
  1857.  
  1858. }
  1859. else if (comboBox28.SelectedIndex == 4)
  1860. {
  1861. Int32 haha = E * Convert.ToInt32(burgerr5.Text);
  1862. burger5.Text = Convert.ToString(haha);
  1863. }
  1864. }
  1865.  
  1866. private void comboBox59_SelectedIndexChanged(object sender, EventArgs e)
  1867. {
  1868. if (comboBox59.SelectedIndex == 0)
  1869. {
  1870.  
  1871. fries1.Text = Convert.ToString(friesR);
  1872. friess1.Text = Convert.ToString(friesR);
  1873.  
  1874. }
  1875. if (comboBox59.SelectedIndex == 1)
  1876. {
  1877.  
  1878. fries1.Text = Convert.ToString(friesM);
  1879. friess1.Text = Convert.ToString(friesM);
  1880.  
  1881. }
  1882. if (comboBox59.SelectedIndex == 2)
  1883. {
  1884.  
  1885. fries1.Text = Convert.ToString(friesL);
  1886. friess1.Text = Convert.ToString(friesL);
  1887.  
  1888. }
  1889. }
  1890.  
  1891. private void comboBox60_SelectedIndexChanged(object sender, EventArgs e)
  1892. {
  1893. if (comboBox60.SelectedItem == null)
  1894. {
  1895. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1896. }
  1897.  
  1898. else if (comboBox60.SelectedIndex == 0)
  1899. {
  1900.  
  1901. Int32 haha = a * Convert.ToInt32(friess1.Text);
  1902. fries1.Text = Convert.ToString(haha);
  1903.  
  1904. }
  1905. else if (comboBox60.SelectedIndex == 1)
  1906. {
  1907. Int32 haha = b * Convert.ToInt32(friess1.Text);
  1908. fries1.Text = Convert.ToString(haha);
  1909. }
  1910. else if (comboBox60.SelectedIndex == 2)
  1911. {
  1912. Int32 haha = c * Convert.ToInt32(friess1.Text);
  1913. fries1.Text = Convert.ToString(haha);
  1914.  
  1915.  
  1916. }
  1917. else if (comboBox60.SelectedIndex == 3)
  1918. {
  1919. Int32 haha = d * Convert.ToInt32(friess1.Text);
  1920. fries1.Text = Convert.ToString(haha);
  1921.  
  1922. }
  1923. else if (comboBox60.SelectedIndex == 4)
  1924. {
  1925. Int32 haha = E * Convert.ToInt32(friess1.Text);
  1926. fries1.Text = Convert.ToString(haha);
  1927. }
  1928. }
  1929.  
  1930. private void comboBox57_SelectedIndexChanged(object sender, EventArgs e)
  1931. {
  1932. if (comboBox57.SelectedIndex == 0)
  1933. {
  1934.  
  1935. fries2.Text = Convert.ToString(shakeR);
  1936. friess2.Text = Convert.ToString(shakeR);
  1937.  
  1938. }
  1939. if (comboBox57.SelectedIndex == 1)
  1940. {
  1941.  
  1942. fries2.Text = Convert.ToString(shakeM);
  1943. friess2.Text = Convert.ToString(shakeM);
  1944.  
  1945. }
  1946. if (comboBox57.SelectedIndex == 2)
  1947. {
  1948.  
  1949. fries2.Text = Convert.ToString(shakeR);
  1950. friess2.Text = Convert.ToString(shakeR);
  1951.  
  1952. }
  1953. }
  1954.  
  1955. private void comboBox58_SelectedIndexChanged(object sender, EventArgs e)
  1956. {
  1957. if (comboBox58.SelectedItem == null)
  1958. {
  1959. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1960. }
  1961.  
  1962. else if (comboBox58.SelectedIndex == 0)
  1963. {
  1964.  
  1965. Int32 haha = a * Convert.ToInt32(friess2.Text);
  1966. fries2.Text = Convert.ToString(haha);
  1967.  
  1968. }
  1969. else if (comboBox58.SelectedIndex == 1)
  1970. {
  1971. Int32 haha = b * Convert.ToInt32(friess2.Text);
  1972. fries2.Text = Convert.ToString(haha);
  1973. }
  1974. else if (comboBox58.SelectedIndex == 2)
  1975. {
  1976. Int32 haha = c * Convert.ToInt32(friess2.Text);
  1977. fries2.Text = Convert.ToString(haha);
  1978.  
  1979.  
  1980. }
  1981. else if (comboBox58.SelectedIndex == 3)
  1982. {
  1983. Int32 haha = d * Convert.ToInt32(friess2.Text);
  1984. fries2.Text = Convert.ToString(haha);
  1985.  
  1986. }
  1987. else if (comboBox58.SelectedIndex == 4)
  1988. {
  1989. Int32 haha = E * Convert.ToInt32(friess2.Text);
  1990. fries2.Text = Convert.ToString(haha);
  1991. }
  1992. }
  1993.  
  1994. private void button9_Click(object sender, EventArgs e)
  1995. {
  1996. if (comboBox36.SelectedItem == null)
  1997. {
  1998. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  1999. }
  2000. else if (comboBox36.SelectedItem == null)
  2001. {
  2002. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2003. }
  2004. else if (comboBox35.SelectedItem == null)
  2005. {
  2006. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2007. }
  2008.  
  2009. else
  2010. {
  2011. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2012.  
  2013.  
  2014. if (dialogResult == DialogResult.Yes)
  2015. {
  2016. add(label87.Text, comboBox36.Text, comboBox35.Text, burger1.Text);
  2017. }
  2018. else if (dialogResult == DialogResult.No)
  2019. {
  2020.  
  2021. }
  2022. }
  2023. }
  2024.  
  2025. private void button19_Click(object sender, EventArgs e)
  2026. {
  2027. if (comboBox34.SelectedItem == null)
  2028. {
  2029. MessageBox.Show("Please complete the selection", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2030. }
  2031. else if (comboBox34.SelectedItem == null)
  2032. {
  2033. MessageBox.Show("Please complete the selection", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2034. }
  2035.  
  2036. else if (comboBox33.SelectedItem == null)
  2037. {
  2038. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2039. }
  2040. else
  2041. {
  2042. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2043.  
  2044.  
  2045. if (dialogResult == DialogResult.Yes)
  2046. {
  2047. add(label82.Text, comboBox34.Text, comboBox33.Text, burger2.Text);
  2048. }
  2049. else if (dialogResult == DialogResult.No)
  2050. {
  2051.  
  2052. }
  2053. }
  2054. }
  2055.  
  2056. private void button18_Click(object sender, EventArgs e)
  2057. {
  2058. if (comboBox32.SelectedItem == null)
  2059. {
  2060. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2061. }
  2062. else if (comboBox32.SelectedItem == null)
  2063. {
  2064. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2065. }
  2066. else if (comboBox31.SelectedItem == null)
  2067. {
  2068. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2069. }
  2070. else
  2071. {
  2072. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2073.  
  2074.  
  2075. if (dialogResult == DialogResult.Yes)
  2076. {
  2077. add(label77.Text, comboBox32.Text, comboBox31.Text, burger3.Text);
  2078. }
  2079. else if (dialogResult == DialogResult.No)
  2080. {
  2081.  
  2082. }
  2083. }
  2084. }
  2085.  
  2086. private void button17_Click(object sender, EventArgs e)
  2087. {
  2088. if (comboBox30.SelectedItem == null)
  2089. {
  2090. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2091. }
  2092. else if (comboBox30.SelectedItem == null)
  2093. {
  2094. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2095. }
  2096. else if (comboBox29.SelectedItem == null)
  2097. {
  2098. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2099. }
  2100. else
  2101. {
  2102. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2103.  
  2104.  
  2105. if (dialogResult == DialogResult.Yes)
  2106. {
  2107. add(label72.Text, comboBox30.Text, comboBox29.Text, burger4.Text);
  2108. }
  2109. else if (dialogResult == DialogResult.No)
  2110. {
  2111.  
  2112. }
  2113. }
  2114. }
  2115.  
  2116. private void button16_Click(object sender, EventArgs e)
  2117. {
  2118. if (comboBox28.SelectedItem == null)
  2119. {
  2120. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2121. }
  2122. else if (comboBox28.SelectedItem == null)
  2123. {
  2124. MessageBox.Show("Please comeplete the selection ", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2125. }
  2126. else if (comboBox27.SelectedItem == null)
  2127. {
  2128. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2129. }
  2130. else
  2131. {
  2132. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2133.  
  2134.  
  2135. if (dialogResult == DialogResult.Yes)
  2136. {
  2137. add(label67.Text, comboBox28.Text, comboBox27.Text, burger5.Text);
  2138. }
  2139. else if (dialogResult == DialogResult.No)
  2140. {
  2141.  
  2142. }
  2143. }
  2144. }
  2145.  
  2146. private void rePrintReceiptToolStripMenuItem_Click(object sender, EventArgs e)
  2147. {
  2148. PRINT frm = new PRINT();
  2149. frm.Show();
  2150. this.Hide();
  2151. }
  2152.  
  2153. private void tabPage3_Click(object sender, EventArgs e)
  2154. {
  2155.  
  2156. }
  2157.  
  2158. private void pictureBox3_Click(object sender, EventArgs e)
  2159. {
  2160. Q1.Show();
  2161.  
  2162. }
  2163.  
  2164. private void pictureBox4_Click(object sender, EventArgs e)
  2165. {
  2166. Q3.Show();
  2167.  
  2168. }
  2169.  
  2170. private void pictureBox5_Click(object sender, EventArgs e)
  2171. {
  2172. Q5.Show();
  2173.  
  2174. }
  2175.  
  2176. private void pictureBox19_Click(object sender, EventArgs e)
  2177. {
  2178. comboBox35.Visible = true;
  2179. comboBox36.Visible = true;
  2180. }
  2181.  
  2182. private void pictureBox18_Click(object sender, EventArgs e)
  2183. {
  2184. comboBox33.Visible = true;
  2185. comboBox34.Visible = true;
  2186.  
  2187. }
  2188.  
  2189. private void pictureBox17_Click(object sender, EventArgs e)
  2190. {
  2191. comboBox31.Visible = true;
  2192. comboBox32.Visible = true;
  2193.  
  2194. }
  2195.  
  2196. private void pictureBox16_Click(object sender, EventArgs e)
  2197. {
  2198. comboBox29.Visible = true;
  2199. comboBox30.Visible = true;
  2200.  
  2201. }
  2202.  
  2203. private void pictureBox15_Click(object sender, EventArgs e)
  2204. {
  2205. comboBox27.Visible = true;
  2206. comboBox28.Visible = true;
  2207.  
  2208. }
  2209.  
  2210. private void pictureBox6_Click(object sender, EventArgs e)
  2211. {
  2212. Q7.Show();
  2213.  
  2214. }
  2215.  
  2216. private void pictureBox13_Click(object sender, EventArgs e)
  2217. {
  2218. comboBox24.Show();
  2219.  
  2220. }
  2221.  
  2222. private void pictureBox12_Click(object sender, EventArgs e)
  2223. {
  2224. comboBox22.Show();
  2225.  
  2226. }
  2227.  
  2228. private void pictureBox11_Click(object sender, EventArgs e)
  2229. {
  2230. comboBox20.Show();
  2231.  
  2232. }
  2233.  
  2234. private void pictureBox10_Click(object sender, EventArgs e)
  2235. {
  2236. comboBox18.Show();
  2237.  
  2238. }
  2239.  
  2240. private void pictureBox9_Click(object sender, EventArgs e)
  2241. {
  2242. comboBox16.Show();
  2243.  
  2244. }
  2245.  
  2246. private void button25_Click(object sender, EventArgs e)
  2247. {
  2248. if (comboBox46.SelectedItem == null)
  2249. {
  2250. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2251. }
  2252. else if (comboBox46.SelectedItem == null)
  2253. {
  2254. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2255. }
  2256. else if (comboBox45.SelectedItem == null)
  2257. {
  2258. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2259. }
  2260.  
  2261. else
  2262. {
  2263. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2264.  
  2265.  
  2266. if (dialogResult == DialogResult.Yes)
  2267. {
  2268. add(label111.Text, comboBox46.Text, comboBox45.Text, cafe2.Text);
  2269. }
  2270. else if (dialogResult == DialogResult.No)
  2271. {
  2272.  
  2273. }
  2274. }
  2275. }
  2276.  
  2277. private void button24_Click(object sender, EventArgs e)
  2278. {
  2279. if (comboBox44.SelectedItem == null)
  2280. {
  2281. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2282. }
  2283. else if (comboBox44.SelectedItem == null)
  2284. {
  2285. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2286. }
  2287. else if (comboBox43.SelectedItem == null)
  2288. {
  2289. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2290. }
  2291.  
  2292. else
  2293. {
  2294. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2295.  
  2296.  
  2297. if (dialogResult == DialogResult.Yes)
  2298. {
  2299. add(label106.Text, comboBox44.Text, comboBox43.Text, cafe3.Text);
  2300. }
  2301. else if (dialogResult == DialogResult.No)
  2302. {
  2303.  
  2304. }
  2305. }
  2306. }
  2307.  
  2308. private void button23_Click(object sender, EventArgs e)
  2309. {
  2310. if (comboBox42.SelectedItem == null)
  2311. {
  2312. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2313. }
  2314. else if (comboBox42.SelectedItem == null)
  2315. {
  2316. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2317. }
  2318. else if (comboBox41.SelectedItem == null)
  2319. {
  2320. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2321. }
  2322.  
  2323. else
  2324. {
  2325. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2326.  
  2327.  
  2328. if (dialogResult == DialogResult.Yes)
  2329. {
  2330. add(label101.Text, comboBox42.Text, comboBox41.Text, cafe4.Text);
  2331. }
  2332. else if (dialogResult == DialogResult.No)
  2333. {
  2334.  
  2335. }
  2336. }
  2337. }
  2338.  
  2339. private void button22_Click(object sender, EventArgs e)
  2340. {
  2341. if (comboBox40.SelectedItem == null)
  2342. {
  2343. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2344. }
  2345. else if (comboBox40.SelectedItem == null)
  2346. {
  2347. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2348. }
  2349. else if (comboBox39.SelectedItem == null)
  2350. {
  2351. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2352. }
  2353.  
  2354. else
  2355. {
  2356. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2357.  
  2358.  
  2359. if (dialogResult == DialogResult.Yes)
  2360. {
  2361. add(label96.Text, comboBox40.Text, comboBox39.Text, cafe5.Text);
  2362. }
  2363. else if (dialogResult == DialogResult.No)
  2364. {
  2365.  
  2366. }
  2367. }
  2368. }
  2369.  
  2370. private void pictureBox25_Click(object sender, EventArgs e)
  2371. {
  2372. comboBox47.Visible = true;
  2373. comboBox48.Visible = true;
  2374.  
  2375. }
  2376.  
  2377. private void pictureBox24_Click(object sender, EventArgs e)
  2378. {
  2379. comboBox45.Visible = true;
  2380. comboBox46.Visible = true;
  2381.  
  2382. }
  2383.  
  2384. private void pictureBox23_Click(object sender, EventArgs e)
  2385. {
  2386. comboBox43.Visible = true;
  2387. comboBox44.Visible = true;
  2388.  
  2389. }
  2390.  
  2391. private void pictureBox22_Click(object sender, EventArgs e)
  2392. {
  2393. comboBox41.Visible = true;
  2394. comboBox42.Visible = true;
  2395.  
  2396. }
  2397.  
  2398. private void pictureBox21_Click(object sender, EventArgs e)
  2399. {
  2400. comboBox39.Visible = true;
  2401. comboBox40.Visible = true;
  2402. }
  2403.  
  2404. private void comboBox55_SelectedIndexChanged(object sender, EventArgs e)
  2405. {
  2406. if (comboBox55.SelectedIndex == 0)
  2407. {
  2408.  
  2409. fries3.Text = Convert.ToString(mcspicybundleM);
  2410. friess3.Text = Convert.ToString(mcspicybundleM);
  2411.  
  2412. }
  2413. if (comboBox55.SelectedIndex == 1)
  2414. {
  2415.  
  2416. fries3.Text = Convert.ToString(mcspicybundleL);
  2417. friess3.Text = Convert.ToString(mcspicybundleL);
  2418.  
  2419. }
  2420. }
  2421.  
  2422. private void comboBox56_SelectedIndexChanged(object sender, EventArgs e)
  2423. {
  2424. if (comboBox56.SelectedItem == null)
  2425. {
  2426. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2427. }
  2428. else if (comboBox55.SelectedItem == null)
  2429. {
  2430. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2431. }
  2432. else if (comboBox56.SelectedIndex == 0)
  2433. {
  2434.  
  2435. Int32 haha = a * Convert.ToInt32(friess3.Text);
  2436. fries3.Text = Convert.ToString(haha);
  2437.  
  2438. }
  2439. else if (comboBox56.SelectedIndex == 1)
  2440. {
  2441. Int32 haha = b * Convert.ToInt32(friess3.Text);
  2442. fries3.Text = Convert.ToString(haha);
  2443. }
  2444. else if (comboBox56.SelectedIndex == 2)
  2445. {
  2446. Int32 haha = c * Convert.ToInt32(friess3.Text);
  2447. fries3.Text = Convert.ToString(haha);
  2448.  
  2449.  
  2450. }
  2451. else if (comboBox56.SelectedIndex == 3)
  2452. {
  2453. Int32 haha = d * Convert.ToInt32(friess3.Text);
  2454. fries3.Text = Convert.ToString(haha);
  2455.  
  2456. }
  2457. else if (comboBox56.SelectedIndex == 4)
  2458. {
  2459. Int32 haha = E * Convert.ToInt32(friess3.Text);
  2460. fries3.Text = Convert.ToString(haha);
  2461. }
  2462. }
  2463.  
  2464. private void comboBox53_SelectedIndexChanged(object sender, EventArgs e)
  2465. {
  2466. if (comboBox53.SelectedIndex == 0)
  2467. {
  2468.  
  2469. fries4.Text = Convert.ToString(bigntastybundleM);
  2470. friess4.Text = Convert.ToString(bigntastybundleM);
  2471.  
  2472. }
  2473. if (comboBox53.SelectedIndex == 1)
  2474. {
  2475.  
  2476. fries4.Text = Convert.ToString(bigntastybundleL);
  2477. friess4.Text = Convert.ToString(bigntastybundleL);
  2478.  
  2479. }
  2480. }
  2481.  
  2482. private void comboBox54_SelectedIndexChanged(object sender, EventArgs e)
  2483. {
  2484. if (comboBox54.SelectedItem == null)
  2485. {
  2486. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2487. }
  2488. else if (comboBox53.SelectedItem == null)
  2489. {
  2490. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2491. }
  2492. else if (comboBox54.SelectedIndex == 0)
  2493. {
  2494.  
  2495. Int32 haha = a * Convert.ToInt32(friess4.Text);
  2496. fries4.Text = Convert.ToString(haha);
  2497.  
  2498. }
  2499. else if (comboBox54.SelectedIndex == 1)
  2500. {
  2501. Int32 haha = b * Convert.ToInt32(friess4.Text);
  2502. fries4.Text = Convert.ToString(haha);
  2503. }
  2504. else if (comboBox54.SelectedIndex == 2)
  2505. {
  2506. Int32 haha = c * Convert.ToInt32(friess4.Text);
  2507. fries4.Text = Convert.ToString(haha);
  2508.  
  2509.  
  2510. }
  2511. else if (comboBox54.SelectedIndex == 3)
  2512. {
  2513. Int32 haha = d * Convert.ToInt32(friess4.Text);
  2514. fries4.Text = Convert.ToString(haha);
  2515.  
  2516. }
  2517. else if (comboBox54.SelectedIndex == 4)
  2518. {
  2519. Int32 haha = E * Convert.ToInt32(friess4.Text);
  2520. fries4.Text = Convert.ToString(haha);
  2521. }
  2522. }
  2523.  
  2524. private void comboBox51_SelectedIndexChanged(object sender, EventArgs e)
  2525. {
  2526. if (comboBox51.SelectedIndex == 0)
  2527. {
  2528.  
  2529. fries5.Text = Convert.ToString(bigmcbundleM);
  2530. friess5.Text = Convert.ToString(bigmcbundleM);
  2531.  
  2532. }
  2533. if (comboBox51.SelectedIndex == 1)
  2534. {
  2535.  
  2536. fries5.Text = Convert.ToString(bigmcbundleL);
  2537. fries5.Text = Convert.ToString(bigmcbundleL);
  2538.  
  2539. }
  2540. }
  2541.  
  2542. private void tabPage5_Click(object sender, EventArgs e)
  2543. {
  2544.  
  2545. }
  2546.  
  2547. private void comboBox52_SelectedIndexChanged(object sender, EventArgs e)
  2548. {
  2549. if (comboBox52.SelectedItem == null)
  2550. {
  2551. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2552. }
  2553. else if (comboBox51.SelectedItem == null)
  2554. {
  2555. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2556. }
  2557. else if (comboBox52.SelectedIndex == 0)
  2558. {
  2559.  
  2560. Int32 haha = a * Convert.ToInt32(friess5.Text);
  2561. fries5.Text = Convert.ToString(haha);
  2562.  
  2563. }
  2564. else if (comboBox52.SelectedIndex == 1)
  2565. {
  2566. Int32 haha = b * Convert.ToInt32(friess5.Text);
  2567. fries5.Text = Convert.ToString(haha);
  2568. }
  2569. else if (comboBox52.SelectedIndex == 2)
  2570. {
  2571. Int32 haha = c * Convert.ToInt32(friess5.Text);
  2572. fries5.Text = Convert.ToString(haha);
  2573.  
  2574.  
  2575. }
  2576. else if (comboBox52.SelectedIndex == 3)
  2577. {
  2578. Int32 haha = d * Convert.ToInt32(friess5.Text);
  2579. fries5.Text = Convert.ToString(haha);
  2580.  
  2581. }
  2582. else if (comboBox52.SelectedIndex == 4)
  2583. {
  2584. Int32 haha = E * Convert.ToInt32(friess5.Text);
  2585. fries5.Text = Convert.ToString(haha);
  2586. }
  2587. }
  2588.  
  2589. private void comboBox49_SelectedIndexChanged(object sender, EventArgs e)
  2590. {
  2591. if (comboBox49.SelectedIndex == 0)
  2592. {
  2593.  
  2594. label23.Text = Convert.ToString(applepie);
  2595. applepiee.Text = Convert.ToString(applepie);
  2596.  
  2597. }
  2598. }
  2599.  
  2600. private void comboBox50_SelectedIndexChanged(object sender, EventArgs e)
  2601. {
  2602. if (comboBox50.SelectedItem == null)
  2603. {
  2604. MessageBox.Show("Please select a Quantity", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2605. }
  2606. else if (comboBox49.SelectedItem == null)
  2607. {
  2608. MessageBox.Show("Please select a size", "POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2609. }
  2610. else if (comboBox50.SelectedIndex == 0)
  2611. {
  2612.  
  2613. Int32 haha = a * Convert.ToInt32(applepiee.Text);
  2614. label23.Text = Convert.ToString(haha);
  2615.  
  2616. }
  2617. else if (comboBox50.SelectedIndex == 1)
  2618. {
  2619. Int32 haha = b * Convert.ToInt32(applepiee.Text);
  2620. label23.Text = Convert.ToString(haha);
  2621. }
  2622. else if (comboBox50.SelectedIndex == 2)
  2623. {
  2624. Int32 haha = c * Convert.ToInt32(applepiee.Text);
  2625. label23.Text = Convert.ToString(haha);
  2626.  
  2627.  
  2628. }
  2629. else if (comboBox50.SelectedIndex == 3)
  2630. {
  2631. Int32 haha = d * Convert.ToInt32(applepiee.Text);
  2632. label23.Text = Convert.ToString(haha);
  2633.  
  2634. }
  2635. else if (comboBox52.SelectedIndex == 4)
  2636. {
  2637. Int32 haha = E * Convert.ToInt32(friess5.Text);
  2638. fries5.Text = Convert.ToString(haha);
  2639. }
  2640. }
  2641.  
  2642. private void button32_Click(object sender, EventArgs e)
  2643. {
  2644. if (comboBox60.SelectedItem == null)
  2645. {
  2646. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2647. }
  2648. else if (comboBox60.SelectedItem == null)
  2649. {
  2650. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2651. }
  2652. else if (comboBox59.SelectedItem == null)
  2653. {
  2654. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2655. }
  2656.  
  2657. else
  2658. {
  2659. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2660.  
  2661.  
  2662. if (dialogResult == DialogResult.Yes)
  2663. {
  2664. add(label145.Text, comboBox60.Text, comboBox59.Text, fries1.Text);
  2665. }
  2666. else if (dialogResult == DialogResult.No)
  2667. {
  2668.  
  2669. }
  2670. }
  2671. }
  2672.  
  2673. private void button31_Click(object sender, EventArgs e)
  2674. {
  2675. if (comboBox58.SelectedItem == null)
  2676. {
  2677. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2678. }
  2679. else if (comboBox58.SelectedItem == null)
  2680. {
  2681. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2682. }
  2683. else if (comboBox57.SelectedItem == null)
  2684. {
  2685. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2686. }
  2687.  
  2688. else
  2689. {
  2690. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2691.  
  2692.  
  2693. if (dialogResult == DialogResult.Yes)
  2694. {
  2695. add(label140.Text, comboBox58.Text, comboBox57.Text, fries2.Text);
  2696. }
  2697. else if (dialogResult == DialogResult.No)
  2698. {
  2699.  
  2700. }
  2701. }
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707. }
  2708.  
  2709. private void button30_Click(object sender, EventArgs e)
  2710. {
  2711. if (comboBox56.SelectedItem == null)
  2712. {
  2713. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2714. }
  2715. else if (comboBox56.SelectedItem == null)
  2716. {
  2717. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2718. }
  2719. else if (comboBox55.SelectedItem == null)
  2720. {
  2721. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2722. }
  2723.  
  2724. else
  2725. {
  2726. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2727.  
  2728.  
  2729. if (dialogResult == DialogResult.Yes)
  2730. {
  2731. add(label135.Text, comboBox56.Text, comboBox55.Text, fries3.Text);
  2732. }
  2733. else if (dialogResult == DialogResult.No)
  2734. {
  2735.  
  2736. }
  2737. }
  2738.  
  2739. }
  2740.  
  2741. private void button29_Click(object sender, EventArgs e)
  2742. {
  2743. if (comboBox54.SelectedItem == null)
  2744. {
  2745. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2746. }
  2747. else if (comboBox54.SelectedItem == null)
  2748. {
  2749. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2750. }
  2751. else if (comboBox53.SelectedItem == null)
  2752. {
  2753. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2754. }
  2755.  
  2756. else
  2757. {
  2758. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2759.  
  2760.  
  2761. if (dialogResult == DialogResult.Yes)
  2762. {
  2763. add(label130.Text, comboBox54.Text, comboBox53.Text, fries4.Text);
  2764. }
  2765. else if (dialogResult == DialogResult.No)
  2766. {
  2767.  
  2768. }
  2769. }
  2770. }
  2771.  
  2772. private void button28_Click(object sender, EventArgs e)
  2773. {
  2774. if (comboBox52.SelectedItem == null)
  2775. {
  2776. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2777. }
  2778. else if (comboBox52.SelectedItem == null)
  2779. {
  2780. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2781. }
  2782. else if (comboBox51.SelectedItem == null)
  2783. {
  2784. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2785. }
  2786.  
  2787. else
  2788. {
  2789. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2790.  
  2791.  
  2792. if (dialogResult == DialogResult.Yes)
  2793. {
  2794. add(label125.Text, comboBox52.Text, comboBox51.Text, fries5.Text);
  2795. }
  2796. else if (dialogResult == DialogResult.No)
  2797. {
  2798.  
  2799. }
  2800. }
  2801. }
  2802.  
  2803. private void button27_Click(object sender, EventArgs e)
  2804. {
  2805. if (comboBox50.SelectedItem == null)
  2806. {
  2807. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2808. }
  2809. else if (comboBox50.SelectedItem == null)
  2810. {
  2811. MessageBox.Show("Please select a quantity", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2812. }
  2813. else if (comboBox49.SelectedItem == null)
  2814. {
  2815. MessageBox.Show("Please select a size", "Orders", MessageBoxButtons.OK, MessageBoxIcon.Error);
  2816. }
  2817.  
  2818. else
  2819. {
  2820. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2821.  
  2822.  
  2823. if (dialogResult == DialogResult.Yes)
  2824. {
  2825. add(label124.Text, comboBox50.Text, comboBox49.Text, label23.Text);
  2826. }
  2827. else if (dialogResult == DialogResult.No)
  2828. {
  2829.  
  2830. }
  2831. }
  2832. }
  2833.  
  2834. private void refreshFormToolStripMenuItem_Click(object sender, EventArgs e)
  2835. {
  2836. this.Close();
  2837. pane frm = new pane();
  2838. frm.Show();
  2839. }
  2840.  
  2841. private void pictureBox31_Click(object sender, EventArgs e)
  2842. {
  2843. comboBox59.Visible = true;
  2844. comboBox60.Visible = true;
  2845.  
  2846. }
  2847.  
  2848. private void pictureBox30_Click(object sender, EventArgs e)
  2849. {
  2850. comboBox57.Visible = true;
  2851. comboBox58.Visible = true;
  2852.  
  2853. }
  2854.  
  2855. private void pictureBox29_Click(object sender, EventArgs e)
  2856. {
  2857. comboBox55.Visible = true;
  2858. comboBox56.Visible = true;
  2859.  
  2860. }
  2861.  
  2862. private void pictureBox28_Click(object sender, EventArgs e)
  2863. {
  2864. comboBox53.Visible = true;
  2865. comboBox54.Visible = true;
  2866.  
  2867. }
  2868.  
  2869. private void pictureBox27_Click(object sender, EventArgs e)
  2870. {
  2871. comboBox51.Visible = true;
  2872. comboBox52.Visible = true;
  2873. }
  2874.  
  2875. private void pictureBox26_Click(object sender, EventArgs e)
  2876. {
  2877. comboBox49.Visible = true;
  2878. comboBox50.Visible = true;
  2879.  
  2880. }
  2881.  
  2882. private void button21_Click(object sender, EventArgs e)
  2883. {
  2884. if (total.Text == "0")
  2885. {
  2886. MessageBox.Show("Get the total first.");
  2887. }
  2888. else if (total.Text == "0")
  2889. {
  2890. MessageBox.Show("Get the total first.");
  2891. }
  2892.  
  2893. else
  2894. {
  2895.  
  2896.  
  2897. DialogResult dialogResult = MessageBox.Show("Does the customer has a proof that he/she's a senior?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  2898.  
  2899.  
  2900. if (dialogResult == DialogResult.Yes)
  2901. {
  2902. Double haha = Convert.ToDouble(discounttext.Text) * dc;
  2903. total.Text = Convert.ToString(haha);
  2904.  
  2905. discount1.Text = "5%";
  2906. MessageBox.Show("Discount added successfully", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  2907. }
  2908. else if (dialogResult == DialogResult.No)
  2909. {
  2910.  
  2911. }
  2912.  
  2913.  
  2914. }
  2915. }
  2916.  
  2917. private void listView1_Click(object sender, EventArgs e)
  2918. {
  2919. double value = 0;
  2920.  
  2921. for (int i = 0; i < listView1.Items.Count; i++)
  2922. {
  2923. value += double.Parse(listView1.Items[i].SubItems[3].Text);
  2924. }
  2925.  
  2926.  
  2927. total.Text = Convert.ToString(value);
  2928. discounttext.Text = Convert.ToString(value);
  2929. }
  2930.  
  2931. private void bestseller_MouseEnter(object sender, EventArgs e)
  2932. {
  2933. bestseller.TabStop = false;
  2934. bestseller.FlatStyle = FlatStyle.Flat;
  2935. bestseller.BackColor = Color.FromArgb(178, 15, 25);
  2936. bestseller.FlatAppearance.BorderColor = Color.FromArgb(178, 15, 25);
  2937. }
  2938.  
  2939. private void bestseller_MouseLeave(object sender, EventArgs e)
  2940. {
  2941. bestseller.TabStop = false;
  2942. bestseller.FlatStyle = FlatStyle.Flat;
  2943. bestseller.BackColor = Color.DarkRed;
  2944. bestseller.FlatAppearance.BorderColor = Color.DarkRed;
  2945. }
  2946.  
  2947. private void button15_Click(object sender, EventArgs e)
  2948. {
  2949. food.Text = "Egg Muffin Ala Carte";
  2950. label2.Text = Convert.ToString(mcmuffinA);
  2951. php1.Text = Convert.ToString(mcmuffinA);
  2952. numericUpDown1.Value = 1;
  2953. numericUpDown1.Enabled = true;
  2954. }
  2955.  
  2956. private void button26_Click(object sender, EventArgs e)
  2957. {
  2958. food.Text = "Egg Muffin Meal";
  2959. label2.Text = Convert.ToString(mcmuffinmeal);
  2960. php2.Text = Convert.ToString(mcmuffinmeal);
  2961. numericUpDown1.Value = 1;
  2962. numericUpDown1.Enabled = true;
  2963. }
  2964.  
  2965. private void button33_Click(object sender, EventArgs e)
  2966. {
  2967. food.Text = "Eggmuffin with Hashbrown";
  2968. label2.Text = Convert.ToString(mcmuffinL);
  2969. php3.Text = Convert.ToString(mcmuffinL);
  2970. numericUpDown1.Value = 1;
  2971. numericUpDown1.Enabled = true;
  2972. }
  2973.  
  2974. private void bestseller_Click(object sender, EventArgs e)
  2975. {
  2976. tabControl1.SelectTab(5);
  2977. }
  2978.  
  2979. private void numericUpDown1_ValueChanged(object sender, EventArgs e)
  2980. {
  2981.  
  2982. if (food.Text == "Egg Muffin Ala Carte")
  2983. {
  2984. Int32 haha = Convert.ToInt32(php1.Text) * Convert.ToInt32(numericUpDown1.Value);
  2985. label2.Text = Convert.ToString(haha);
  2986. }
  2987. if (food.Text == "Egg Muffin Meal")
  2988. {
  2989. Int32 haha = Convert.ToInt32(php2.Text) * Convert.ToInt32(numericUpDown1.Value);
  2990. label2.Text = Convert.ToString(haha);
  2991. }
  2992. if (food.Text == "Eggmuffin with Hashbrown")
  2993. {
  2994. Int32 haha = Convert.ToInt32(php3.Text) * Convert.ToInt32(numericUpDown1.Value);
  2995. label2.Text = Convert.ToString(haha);
  2996. }
  2997.  
  2998. }
  2999.  
  3000. private void button39_Click(object sender, EventArgs e)
  3001. {
  3002. f1.Text = "Fries Medium";
  3003. label14.Text = Convert.ToString(friesM);
  3004. f4.Text = Convert.ToString(friesM);
  3005. numericUpDown2.Value = 1;
  3006. numericUpDown2.Enabled = true;
  3007. }
  3008.  
  3009. private void button38_Click_1(object sender, EventArgs e)
  3010. {
  3011. f1.Text = "Fries Regular";
  3012. label14.Text = Convert.ToString(friesR);
  3013. f5.Text = Convert.ToString(friesR);
  3014. numericUpDown2.Value = 1;
  3015. numericUpDown2.Enabled = true;
  3016. }
  3017.  
  3018. private void button36_Click_1(object sender, EventArgs e)
  3019. {
  3020.  
  3021. f1.Text = "Fries Large";
  3022. label14.Text = Convert.ToString(friesL);
  3023. f6.Text = Convert.ToString(friesL);
  3024. numericUpDown2.Value = 1;
  3025. numericUpDown2.Enabled = true;
  3026. }
  3027.  
  3028. private void numericUpDown2_ValueChanged(object sender, EventArgs e)
  3029. {
  3030. if (f1.Text == "Fries Medium")
  3031. {
  3032. Int32 haha = Convert.ToInt32(f4.Text) * Convert.ToInt32(numericUpDown2.Value);
  3033. label14.Text = Convert.ToString(haha);
  3034. }
  3035. if (f1.Text == "Fries Regular")
  3036. {
  3037. Int32 haha = Convert.ToInt32(f5.Text) * Convert.ToInt32(numericUpDown2.Value);
  3038. label14.Text = Convert.ToString(haha);
  3039. }
  3040. if (f1.Text == "Fries Large")
  3041. {
  3042. Int32 haha = Convert.ToInt32(f6.Text) * Convert.ToInt32(numericUpDown2.Value);
  3043. label14.Text = Convert.ToString(haha);
  3044. }
  3045. }
  3046.  
  3047. private void button34_Click_1(object sender, EventArgs e)
  3048. {
  3049. if (numericUpDown1.Value == 0)
  3050. {
  3051. MessageBox.Show("Please select from choices first and add a quantity.", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  3052. }
  3053. else if (numericUpDown1.Value == 0)
  3054. {
  3055. MessageBox.Show("Please select from choices and add a quantity.", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  3056. }
  3057. else if (label2.Text == "")
  3058. {
  3059. MessageBox.Show("Complete the requirements first", "[POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  3060. }
  3061.  
  3062. else
  3063. {
  3064. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  3065.  
  3066.  
  3067. if (dialogResult == DialogResult.Yes)
  3068. {
  3069. add(bes1.Text, numericUpDown1.Text, reg2.Text, label2.Text);
  3070. }
  3071. else if (dialogResult == DialogResult.No)
  3072. {
  3073.  
  3074. }
  3075. }
  3076. }
  3077.  
  3078. private void button35_Click_1(object sender, EventArgs e)
  3079. {
  3080. if (numericUpDown2.Value == 0)
  3081. {
  3082. MessageBox.Show("Please select from choices first and add a quantity.", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  3083. }
  3084. else if (numericUpDown2.Value == 0)
  3085. {
  3086. MessageBox.Show("Please select from choices and add a quantity.", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
  3087. }
  3088. else if (label14.Text == "")
  3089. {
  3090. MessageBox.Show("Complete the requirements first", "[POS", MessageBoxButtons.OK, MessageBoxIcon.Error);
  3091. }
  3092.  
  3093. else
  3094. {
  3095. DialogResult dialogResult = MessageBox.Show("Orders will now add to cart?", "Orders", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
  3096.  
  3097.  
  3098. if (dialogResult == DialogResult.Yes)
  3099. {
  3100. add(bes2.Text, numericUpDown2.Text, f1.Text, label14.Text);
  3101. }
  3102. else if (dialogResult == DialogResult.No)
  3103. {
  3104.  
  3105. }
  3106. }
  3107. }
  3108.  
  3109. private void listView1_SelectedIndexChanged(object sender, EventArgs e)
  3110. {
  3111.  
  3112. }
  3113.  
  3114.  
  3115.  
  3116.  
  3117. }
  3118. }
Add Comment
Please, Sign In to add comment