Advertisement
Guest User

Untitled

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