Advertisement
Guest User

ProjetoFinalTeste#3

a guest
May 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 200.68 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.IO;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace WindowsFormsApp1
  13. {
  14. public partial class Avaliação : Form
  15. {
  16. public Avaliação()
  17. {
  18. InitializeComponent();
  19. }
  20. public double altura, peso;
  21. public int dia, pontos = 0;
  22. private void altura_TextChanged(object sender, EventArgs e)
  23. {
  24. bool resposta = double.TryParse(CaixaAltura.Text, out altura);
  25. if (resposta == false)
  26. {
  27. MessageBox.Show("Altura inválida! Não se aceita pontos \".\"", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  28. CaixaAltura.Focus();
  29. }
  30. }
  31.  
  32. private void ComboMes_SelectedIndexChanged(object sender, EventArgs e)
  33. {
  34. bool respota = int.TryParse(ComboDia.SelectedText, out dia);
  35. if (ComboMes.Text == "Fevereiro" && dia > 28)
  36. {
  37. MessageBox.Show("Data inválida!", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  38. ComboDia.Focus();
  39. }
  40. }
  41.  
  42. private void ComboAli_SelectedIndexChanged(object sender, EventArgs e)
  43. {
  44.  
  45. }
  46.  
  47. private void ComboPequenoAlmoço_SelectedIndexChanged(object sender, EventArgs e)
  48. {
  49. if (ComboPequenoAlmoço.Text == "Cereais com Leite")
  50. {
  51. pontos += 3;
  52. }
  53. else if (ComboPequenoAlmoço.Text == "Café com Leite + Pão")
  54. {
  55. pontos += 2;
  56. }
  57. else if (ComboPequenoAlmoço.Text == "Ovos")
  58. {
  59. pontos++;
  60. }
  61.  
  62. }
  63.  
  64. private void ComboManha_SelectedIndexChanged(object sender, EventArgs e)
  65. {
  66. if (ComboPequenoAlmoço.Text == "Cereais com Leite" || ComboPequenoAlmoço.Text == "Café com Leite + Pão")
  67. {
  68. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  69. {
  70. pontos+=4;
  71. }
  72. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate")
  73. {
  74. pontos+=2;
  75. }
  76. else if (ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  77. {
  78. pontos++;
  79. }
  80. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  81. {
  82. pontos+=3;
  83. }
  84. else
  85. {
  86. pontos += 0;
  87. }
  88. }
  89. else if (ComboPequenoAlmoço.Text == "Ovos")
  90. {
  91. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  92. {
  93. pontos += 2;
  94. }
  95. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate")
  96. {
  97. pontos ++;
  98. }
  99. else if (ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  100. {
  101. pontos+=0;
  102. }
  103. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  104. {
  105. pontos += 3;
  106. }
  107. else
  108. {
  109. pontos += 4;
  110. }
  111. }
  112. }
  113.  
  114. private void ComboAlmoço_SelectedIndexChanged(object sender, EventArgs e)
  115. {
  116. if (ComboPequenoAlmoço.Text == "Cereais com Leite" || ComboPequenoAlmoço.Text == "Café com Leite + Pão")
  117. {
  118. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  119. {
  120. if (ComboAlmoço.Text == "Snacks")
  121. {
  122. pontos++;
  123. }
  124. else if (ComboAlmoço.Text == "Comida Italiana")
  125. {
  126. pontos+=2;
  127. }
  128. else if (ComboAlmoço.Text == "Arroz + Carne")
  129. {
  130. pontos+=3;
  131. }
  132. else if (ComboAlmoço.Text == "Arroz + Peixe")
  133. {
  134. pontos+=4;
  135. }
  136. else if (ComboAlmoço.Text == "Batatas + Carne")
  137. {
  138. pontos+=5;
  139. }
  140. else if (ComboAlmoço.Text == "Batatas + Peixe")
  141. {
  142. pontos+=6;
  143. }
  144. else
  145. {
  146. pontos += 0;
  147. }
  148. }
  149. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  150. {
  151. if (ComboAlmoço.Text == "Snacks")
  152. {
  153. pontos++;
  154. }
  155. else if (ComboAlmoço.Text == "Comida Italiana")
  156. {
  157. pontos += 2;
  158. }
  159. else if (ComboAlmoço.Text == "Arroz + Carne")
  160. {
  161. pontos += 3;
  162. }
  163. else if (ComboAlmoço.Text == "Arroz + Peixe")
  164. {
  165. pontos += 4;
  166. }
  167. else if (ComboAlmoço.Text == "Batatas + Carne")
  168. {
  169. pontos += 5;
  170. }
  171. else if (ComboAlmoço.Text == "Batatas + Peixe")
  172. {
  173. pontos += 6;
  174. }
  175. else
  176. {
  177. pontos += 0;
  178. }
  179. }
  180. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  181. {
  182. if (ComboAlmoço.Text == "Snacks")
  183. {
  184. pontos++;
  185. }
  186. else if (ComboAlmoço.Text == "Comida Italiana")
  187. {
  188. pontos += 3;
  189. }
  190. else if (ComboAlmoço.Text == "Arroz + Carne")
  191. {
  192. pontos += 2;
  193. }
  194. else if (ComboAlmoço.Text == "Arroz + Peixe")
  195. {
  196. pontos += 4;
  197. }
  198. else if (ComboAlmoço.Text == "Batatas + Carne")
  199. {
  200. pontos += 5;
  201. }
  202. else if (ComboAlmoço.Text == "Batatas + Peixe")
  203. {
  204. pontos += 6;
  205. }
  206. else
  207. {
  208. pontos += 0;
  209. }
  210. }
  211. }
  212. else if (ComboPequenoAlmoço.Text == "Ovos")
  213. {
  214. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  215. {
  216. if (ComboAlmoço.Text == "Snacks")
  217. {
  218. pontos+=0;
  219. }
  220. else if (ComboAlmoço.Text == "Comida Italiana")
  221. {
  222. pontos += 6;
  223. }
  224. else if (ComboAlmoço.Text == "Arroz + Carne")
  225. {
  226. pontos ++;
  227. }
  228. else if (ComboAlmoço.Text == "Arroz + Peixe")
  229. {
  230. pontos += 3;
  231. }
  232. else if (ComboAlmoço.Text == "Batatas + Carne")
  233. {
  234. pontos += 4;
  235. }
  236. else if (ComboAlmoço.Text == "Batatas + Peixe")
  237. {
  238. pontos += 5;
  239. }
  240. else
  241. {
  242. pontos += 0;
  243. }
  244. }
  245. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  246. {
  247. if (ComboAlmoço.Text == "Snacks")
  248. {
  249. pontos += 0;
  250. }
  251. else if (ComboAlmoço.Text == "Comida Italiana")
  252. {
  253. pontos += 5;
  254. }
  255. else if (ComboAlmoço.Text == "Arroz + Carne")
  256. {
  257. pontos++;
  258. }
  259. else if (ComboAlmoço.Text == "Arroz + Peixe")
  260. {
  261. pontos += 2;
  262. }
  263. else if (ComboAlmoço.Text == "Batatas + Carne")
  264. {
  265. pontos += 3;
  266. }
  267. else if (ComboAlmoço.Text == "Batatas + Peixe")
  268. {
  269. pontos += 4;
  270. }
  271. else
  272. {
  273. pontos += 6;
  274. }
  275. }
  276. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  277. {
  278. if (ComboAlmoço.Text == "Snacks")
  279. {
  280. pontos += 0;
  281. }
  282. else if (ComboAlmoço.Text == "Comida Italiana")
  283. {
  284. pontos += 5;
  285. }
  286. else if (ComboAlmoço.Text == "Arroz + Carne")
  287. {
  288. pontos++;
  289. }
  290. else if (ComboAlmoço.Text == "Arroz + Peixe")
  291. {
  292. pontos += 2;
  293. }
  294. else if (ComboAlmoço.Text == "Batatas + Carne")
  295. {
  296. pontos += 3;
  297. }
  298. else if (ComboAlmoço.Text == "Batatas + Peixe")
  299. {
  300. pontos += 4;
  301. }
  302. else
  303. {
  304. pontos += 6;
  305. }
  306. }
  307. else
  308. {
  309. pontos += 0;
  310. }
  311. }
  312. }
  313.  
  314. private void ComboTarde_SelectedIndexChanged(object sender, EventArgs e)
  315. {
  316. if (ComboPequenoAlmoço.Text == "Cereais com Leite" || ComboPequenoAlmoço.Text == "Café com Leite + Pão")
  317. {
  318. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  319. {
  320. if (ComboAlmoço.Text == "Snacks")
  321. {
  322. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  323. {
  324. pontos++;
  325. }
  326. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  327. {
  328. pontos += 0;
  329. }
  330. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  331. {
  332. pontos += 2;
  333. }
  334. else
  335. {
  336. pontos += 3;
  337. }
  338. }
  339. else if (ComboAlmoço.Text == "Comida Italiana")
  340. {
  341. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  342. {
  343. pontos += 3;
  344. }
  345. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  346. {
  347. pontos += 0;
  348. }
  349. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  350. {
  351. pontos += 2;
  352. }
  353. else
  354. {
  355. pontos++;
  356. }
  357. }
  358. else if (ComboAlmoço.Text == "Arroz + Carne")
  359. {
  360. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  361. {
  362. pontos+=4;
  363. }
  364. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  365. {
  366. pontos++;
  367. }
  368. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  369. {
  370. pontos+=3;
  371. }
  372. else
  373. {
  374. pontos+=0;
  375. }
  376. }
  377. else if (ComboAlmoço.Text == "Arroz + Peixe")
  378. {
  379. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  380. {
  381. pontos += 4;
  382. }
  383. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  384. {
  385. pontos++;
  386. }
  387. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  388. {
  389. pontos += 3;
  390. }
  391. else
  392. {
  393. pontos += 0;
  394. }
  395. }
  396. else if (ComboAlmoço.Text == "Batatas + Carne")
  397. {
  398. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  399. {
  400. pontos += 4;
  401. }
  402. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  403. {
  404. pontos++;
  405. }
  406. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  407. {
  408. pontos += 3;
  409. }
  410. else
  411. {
  412. pontos += 0;
  413. }
  414. }
  415. else if (ComboAlmoço.Text == "Batatas + Peixe")
  416. {
  417. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  418. {
  419. pontos += 4;
  420. }
  421. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  422. {
  423. pontos++;
  424. }
  425. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  426. {
  427. pontos += 3;
  428. }
  429. else
  430. {
  431. pontos += 0;
  432. }
  433. }
  434. else
  435. {
  436. pontos++;
  437. }
  438. }
  439. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  440. {
  441. if (ComboAlmoço.Text == "Snacks")
  442. {
  443. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  444. {
  445. pontos +=0;
  446. }
  447. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  448. {
  449. pontos++;
  450. }
  451. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  452. {
  453. pontos += 2;
  454. }
  455. else
  456. {
  457. pontos += 3;
  458. }
  459. }
  460. else if (ComboAlmoço.Text == "Comida Italiana")
  461. {
  462. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  463. {
  464. pontos +=3;
  465. }
  466. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  467. {
  468. pontos+=0;
  469. }
  470. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  471. {
  472. pontos ++;
  473. }
  474. else
  475. {
  476. pontos += 2;
  477. }
  478. }
  479. else if (ComboAlmoço.Text == "Arroz + Carne")
  480. {
  481. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  482. {
  483. pontos+=3;
  484. }
  485. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  486. {
  487. pontos++;
  488. }
  489. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  490. {
  491. pontos+=2;
  492. }
  493. else
  494. {
  495. pontos+=0;
  496. }
  497. }
  498. else if (ComboAlmoço.Text == "Arroz + Peixe")
  499. {
  500. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  501. {
  502. pontos += 3;
  503. }
  504. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  505. {
  506. pontos++;
  507. }
  508. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  509. {
  510. pontos += 2;
  511. }
  512. else
  513. {
  514. pontos += 0;
  515. }
  516. }
  517. else if (ComboAlmoço.Text == "Batatas + Carne")
  518. {
  519. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  520. {
  521. pontos += 3;
  522. }
  523. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  524. {
  525. pontos++;
  526. }
  527. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  528. {
  529. pontos += 2;
  530. }
  531. else
  532. {
  533. pontos += 0;
  534. }
  535. }
  536. else if (ComboAlmoço.Text == "Batatas + Peixe")
  537. {
  538. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  539. {
  540. pontos += 3;
  541. }
  542. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  543. {
  544. pontos++;
  545. }
  546. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  547. {
  548. pontos += 2;
  549. }
  550. else
  551. {
  552. pontos += 0;
  553. }
  554. }
  555. else
  556. {
  557. pontos++;
  558. }
  559. }
  560. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  561. {
  562. if (ComboAlmoço.Text == "Snacks")
  563. {
  564. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  565. {
  566. pontos++;
  567. }
  568. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  569. {
  570. pontos += 0;
  571. }
  572. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  573. {
  574. pontos += 2;
  575. }
  576. else
  577. {
  578. pontos += 3;
  579. }
  580. }
  581. else if (ComboAlmoço.Text == "Comida Italiana")
  582. {
  583. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  584. {
  585. pontos++;
  586. }
  587. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  588. {
  589. pontos += 0;
  590. }
  591. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  592. {
  593. pontos += 2;
  594. }
  595. else
  596. {
  597. pontos += 3;
  598. }
  599. }
  600. else if (ComboAlmoço.Text == "Arroz + Carne")
  601. {
  602. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  603. {
  604. pontos+=3;
  605. }
  606. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  607. {
  608. pontos ++;
  609. }
  610. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  611. {
  612. pontos +=2;
  613. }
  614. else
  615. {
  616. pontos += 0;
  617. }
  618. }
  619. else if (ComboAlmoço.Text == "Arroz + Peixe")
  620. {
  621. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  622. {
  623. pontos += 3;
  624. }
  625. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  626. {
  627. pontos++;
  628. }
  629. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  630. {
  631. pontos += 2;
  632. }
  633. else
  634. {
  635. pontos += 0;
  636. }
  637. }
  638. else if (ComboAlmoço.Text == "Batatas + Carne")
  639. {
  640. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  641. {
  642. pontos += 3;
  643. }
  644. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  645. {
  646. pontos++;
  647. }
  648. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  649. {
  650. pontos += 2;
  651. }
  652. else
  653. {
  654. pontos += 0;
  655. }
  656. }
  657. else if (ComboAlmoço.Text == "Batatas + Peixe")
  658. {
  659. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  660. {
  661. pontos += 3;
  662. }
  663. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  664. {
  665. pontos++;
  666. }
  667. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  668. {
  669. pontos += 2;
  670. }
  671. else
  672. {
  673. pontos += 0;
  674. }
  675. }
  676. else
  677. {
  678. pontos++;
  679. }
  680. }
  681. }
  682. else if (ComboPequenoAlmoço.Text == "Ovos")
  683. {
  684. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  685. {
  686. if (ComboAlmoço.Text == "Snacks")
  687. {
  688. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  689. {
  690. pontos += 0;
  691. }
  692. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  693. {
  694. pontos++;
  695. }
  696. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  697. {
  698. pontos += 2;
  699. }
  700. else
  701. {
  702. pontos += 3;
  703. }
  704. }
  705. else if (ComboAlmoço.Text == "Comida Italiana")
  706. {
  707. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  708. {
  709. pontos += 3;
  710. }
  711. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  712. {
  713. pontos++;
  714. }
  715. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  716. {
  717. pontos += 2;
  718. }
  719. else
  720. {
  721. pontos += 0;
  722. }
  723. }
  724. else if (ComboAlmoço.Text == "Arroz + Carne")
  725. {
  726. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  727. {
  728. pontos += 3;
  729. }
  730. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  731. {
  732. pontos++;
  733. }
  734. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  735. {
  736. pontos += 2;
  737. }
  738. else
  739. {
  740. pontos += 0;
  741. }
  742. }
  743. else if (ComboAlmoço.Text == "Arroz + Peixe")
  744. {
  745. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  746. {
  747. pontos += 3;
  748. }
  749. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  750. {
  751. pontos++;
  752. }
  753. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  754. {
  755. pontos += 2;
  756. }
  757. else
  758. {
  759. pontos += 0;
  760. }
  761. }
  762. else if (ComboAlmoço.Text == "Batatas + Carne")
  763. {
  764. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  765. {
  766. pontos += 3;
  767. }
  768. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  769. {
  770. pontos++;
  771. }
  772. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  773. {
  774. pontos += 2;
  775. }
  776. else
  777. {
  778. pontos += 0;
  779. }
  780. }
  781. else if (ComboAlmoço.Text == "Batatas + Peixe")
  782. {
  783. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  784. {
  785. pontos += 3;
  786. }
  787. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  788. {
  789. pontos++;
  790. }
  791. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  792. {
  793. pontos += 2;
  794. }
  795. else
  796. {
  797. pontos += 0;
  798. }
  799. }
  800. else
  801. {
  802. pontos++;
  803. }
  804. }
  805. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  806. {
  807. if (ComboAlmoço.Text == "Snacks")
  808. {
  809. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  810. {
  811. pontos ++;
  812. }
  813. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  814. {
  815. pontos+=0;
  816. }
  817. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  818. {
  819. pontos += 2;
  820. }
  821. else
  822. {
  823. pontos += 3;
  824. }
  825. }
  826. else if (ComboAlmoço.Text == "Comida Italiana")
  827. {
  828. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  829. {
  830. pontos += 3;
  831. }
  832. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  833. {
  834. pontos++;
  835. }
  836. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  837. {
  838. pontos += 2;
  839. }
  840. else
  841. {
  842. pontos += 0;
  843. }
  844. }
  845. else if (ComboAlmoço.Text == "Arroz + Carne")
  846. {
  847. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  848. {
  849. pontos += 3;
  850. }
  851. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  852. {
  853. pontos++;
  854. }
  855. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  856. {
  857. pontos += 2;
  858. }
  859. else
  860. {
  861. pontos += 0;
  862. }
  863. }
  864. else if (ComboAlmoço.Text == "Arroz + Peixe")
  865. {
  866. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  867. {
  868. pontos += 3;
  869. }
  870. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  871. {
  872. pontos++;
  873. }
  874. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  875. {
  876. pontos += 2;
  877. }
  878. else
  879. {
  880. pontos += 0;
  881. }
  882. }
  883. else if (ComboAlmoço.Text == "Batatas + Carne")
  884. {
  885. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  886. {
  887. pontos += 3;
  888. }
  889. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  890. {
  891. pontos++;
  892. }
  893. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  894. {
  895. pontos += 2;
  896. }
  897. else
  898. {
  899. pontos += 0;
  900. }
  901. }
  902. else if (ComboAlmoço.Text == "Batatas + Peixe")
  903. {
  904. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  905. {
  906. pontos += 3;
  907. }
  908. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  909. {
  910. pontos++;
  911. }
  912. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  913. {
  914. pontos += 2;
  915. }
  916. else
  917. {
  918. pontos += 0;
  919. }
  920. }
  921. else
  922. {
  923.  
  924. }
  925. }
  926. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  927. {
  928. if (ComboAlmoço.Text == "Snacks")
  929. {
  930. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  931. {
  932. pontos += 2;
  933. }
  934. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  935. {
  936. pontos+=0;
  937. }
  938. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  939. {
  940. pontos +=3;
  941. }
  942. else
  943. {
  944. pontos ++;
  945. }
  946. }
  947. else if (ComboAlmoço.Text == "Comida Italiana")
  948. {
  949. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  950. {
  951. pontos += 2;
  952. }
  953. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  954. {
  955. pontos += 0;
  956. }
  957. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  958. {
  959. pontos += 3;
  960. }
  961. else
  962. {
  963. pontos++;
  964. }
  965. }
  966. else if (ComboAlmoço.Text == "Arroz + Carne")
  967. {
  968. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  969. {
  970. pontos += 2;
  971. }
  972. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  973. {
  974. pontos += 0;
  975. }
  976. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  977. {
  978. pontos += 3;
  979. }
  980. else
  981. {
  982. pontos++;
  983. }
  984. }
  985. else if (ComboAlmoço.Text == "Arroz + Peixe")
  986. {
  987. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  988. {
  989. pontos += 2;
  990. }
  991. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  992. {
  993. pontos += 0;
  994. }
  995. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  996. {
  997. pontos += 3;
  998. }
  999. else
  1000. {
  1001. pontos++;
  1002. }
  1003. }
  1004. else if (ComboAlmoço.Text == "Batatas + Carne")
  1005. {
  1006. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1007. {
  1008. pontos += 2;
  1009. }
  1010. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1011. {
  1012. pontos += 0;
  1013. }
  1014. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1015. {
  1016. pontos += 3;
  1017. }
  1018. else
  1019. {
  1020. pontos++;
  1021. }
  1022. }
  1023. else if (ComboAlmoço.Text == "Batatas + Peixe")
  1024. {
  1025. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1026. {
  1027. pontos += 2;
  1028. }
  1029. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1030. {
  1031. pontos += 0;
  1032. }
  1033. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1034. {
  1035. pontos += 3;
  1036. }
  1037. else
  1038. {
  1039. pontos++;
  1040. }
  1041. }
  1042. else
  1043. {
  1044.  
  1045. }
  1046. }
  1047. else
  1048. {
  1049.  
  1050. }
  1051. }
  1052. }
  1053.  
  1054. private void ComboJantar_SelectedIndexChanged(object sender, EventArgs e)
  1055. {
  1056. if (ComboPequenoAlmoço.Text == "Cereais com Leite" || ComboPequenoAlmoço.Text == "Café com Leite + Pão")
  1057. {
  1058. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  1059. {
  1060. if (ComboAlmoço.Text == "Snacks")
  1061. {
  1062. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1063. {
  1064. if (ComboJantar.Text == "Snacks")
  1065. {
  1066. pontos += 0;
  1067. }
  1068. else if (ComboJantar.Text == "Comida Italiana")
  1069. {
  1070. pontos++;
  1071. }
  1072. else if (ComboJantar.Text == "Arroz + Carne")
  1073. {
  1074. pontos += 2;
  1075. }
  1076. else if (ComboJantar.Text == "Arroz + Peixe")
  1077. {
  1078. pontos += 4;
  1079. }
  1080. else if (ComboJantar.Text == "Batatas + Carne")
  1081. {
  1082. pontos += 3;
  1083. }
  1084. else if (ComboJantar.Text == "Batatas + Peixe")
  1085. {
  1086. pontos += 5;
  1087. }
  1088. }
  1089. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1090. {
  1091. if (ComboJantar.Text == "Snacks")
  1092. {
  1093. pontos += 0;
  1094. }
  1095. else if (ComboJantar.Text == "Comida Italiana")
  1096. {
  1097. pontos++;
  1098. }
  1099. else if (ComboJantar.Text == "Arroz + Carne")
  1100. {
  1101. pontos += 2;
  1102. }
  1103. else if (ComboJantar.Text == "Arroz + Peixe")
  1104. {
  1105. pontos += 4;
  1106. }
  1107. else if (ComboJantar.Text == "Batatas + Carne")
  1108. {
  1109. pontos += 3;
  1110. }
  1111. else if (ComboJantar.Text == "Batatas + Peixe")
  1112. {
  1113. pontos += 5;
  1114. }
  1115. }
  1116. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1117. {
  1118. if (ComboJantar.Text == "Snacks")
  1119. {
  1120. pontos += 0;
  1121. }
  1122. else if (ComboJantar.Text == "Comida Italiana")
  1123. {
  1124. pontos++;
  1125. }
  1126. else if (ComboJantar.Text == "Arroz + Carne")
  1127. {
  1128. pontos += 2;
  1129. }
  1130. else if (ComboJantar.Text == "Arroz + Peixe")
  1131. {
  1132. pontos += 4;
  1133. }
  1134. else if (ComboJantar.Text == "Batatas + Carne")
  1135. {
  1136. pontos += 3;
  1137. }
  1138. else if (ComboJantar.Text == "Batatas + Peixe")
  1139. {
  1140. pontos += 5;
  1141. }
  1142. }
  1143. else
  1144. {
  1145. pontos++;
  1146. }
  1147. }
  1148. else if (ComboAlmoço.Text == "Comida Italiana")
  1149. {
  1150. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1151. {
  1152. if (ComboJantar.Text == "Snacks")
  1153. {
  1154. pontos ++;
  1155. }
  1156. else if (ComboJantar.Text == "Comida Italiana")
  1157. {
  1158. pontos+=0;
  1159. }
  1160. else if (ComboJantar.Text == "Arroz + Carne")
  1161. {
  1162. pontos += 2;
  1163. }
  1164. else if (ComboJantar.Text == "Arroz + Peixe")
  1165. {
  1166. pontos += 4;
  1167. }
  1168. else if (ComboJantar.Text == "Batatas + Carne")
  1169. {
  1170. pontos += 3;
  1171. }
  1172. else if (ComboJantar.Text == "Batatas + Peixe")
  1173. {
  1174. pontos += 5;
  1175. }
  1176. }
  1177. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1178. {
  1179. if (ComboJantar.Text == "Snacks")
  1180. {
  1181. pontos++;
  1182. }
  1183. else if (ComboJantar.Text == "Comida Italiana")
  1184. {
  1185. pontos += 0;
  1186. }
  1187. else if (ComboJantar.Text == "Arroz + Carne")
  1188. {
  1189. pontos += 2;
  1190. }
  1191. else if (ComboJantar.Text == "Arroz + Peixe")
  1192. {
  1193. pontos += 4;
  1194. }
  1195. else if (ComboJantar.Text == "Batatas + Carne")
  1196. {
  1197. pontos += 3;
  1198. }
  1199. else if (ComboJantar.Text == "Batatas + Peixe")
  1200. {
  1201. pontos += 5;
  1202. }
  1203. }
  1204. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1205. {
  1206. if (ComboJantar.Text == "Snacks")
  1207. {
  1208. pontos++;
  1209. }
  1210. else if (ComboJantar.Text == "Comida Italiana")
  1211. {
  1212. pontos += 0;
  1213. }
  1214. else if (ComboJantar.Text == "Arroz + Carne")
  1215. {
  1216. pontos += 2;
  1217. }
  1218. else if (ComboJantar.Text == "Arroz + Peixe")
  1219. {
  1220. pontos += 4;
  1221. }
  1222. else if (ComboJantar.Text == "Batatas + Carne")
  1223. {
  1224. pontos += 3;
  1225. }
  1226. else if (ComboJantar.Text == "Batatas + Peixe")
  1227. {
  1228. pontos += 5;
  1229. }
  1230. }
  1231. else
  1232. {
  1233.  
  1234. }
  1235. }
  1236. else if (ComboAlmoço.Text == "Arroz + Carne")
  1237. {
  1238. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1239. {
  1240. if (ComboJantar.Text == "Snacks")
  1241. {
  1242. pontos+=0;
  1243. }
  1244. else if (ComboJantar.Text == "Comida Italiana")
  1245. {
  1246. pontos ++;
  1247. }
  1248. else if (ComboJantar.Text == "Arroz + Carne")
  1249. {
  1250. pontos += 2;
  1251. }
  1252. else if (ComboJantar.Text == "Arroz + Peixe")
  1253. {
  1254. pontos += 4;
  1255. }
  1256. else if (ComboJantar.Text == "Batatas + Carne")
  1257. {
  1258. pontos += 3;
  1259. }
  1260. else if (ComboJantar.Text == "Batatas + Peixe")
  1261. {
  1262. pontos += 5;
  1263. }
  1264. }
  1265. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1266. {
  1267. if (ComboJantar.Text == "Snacks")
  1268. {
  1269. pontos += 0;
  1270. }
  1271. else if (ComboJantar.Text == "Comida Italiana")
  1272. {
  1273. pontos++;
  1274. }
  1275. else if (ComboJantar.Text == "Arroz + Carne")
  1276. {
  1277. pontos += 2;
  1278. }
  1279. else if (ComboJantar.Text == "Arroz + Peixe")
  1280. {
  1281. pontos += 4;
  1282. }
  1283. else if (ComboJantar.Text == "Batatas + Carne")
  1284. {
  1285. pontos += 3;
  1286. }
  1287. else if (ComboJantar.Text == "Batatas + Peixe")
  1288. {
  1289. pontos += 5;
  1290. }
  1291. }
  1292. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1293. {
  1294. if (ComboJantar.Text == "Snacks")
  1295. {
  1296. pontos += 0;
  1297. }
  1298. else if (ComboJantar.Text == "Comida Italiana")
  1299. {
  1300. pontos++;
  1301. }
  1302. else if (ComboJantar.Text == "Arroz + Carne")
  1303. {
  1304. pontos += 2;
  1305. }
  1306. else if (ComboJantar.Text == "Arroz + Peixe")
  1307. {
  1308. pontos += 4;
  1309. }
  1310. else if (ComboJantar.Text == "Batatas + Carne")
  1311. {
  1312. pontos += 3;
  1313. }
  1314. else if (ComboJantar.Text == "Batatas + Peixe")
  1315. {
  1316. pontos += 5;
  1317. }
  1318. }
  1319. else
  1320. {
  1321.  
  1322. }
  1323. }
  1324. else if (ComboAlmoço.Text == "Arroz + Peixe")
  1325. {
  1326. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1327. {
  1328. if (ComboJantar.Text == "Snacks")
  1329. {
  1330. pontos += 0;
  1331. }
  1332. else if (ComboJantar.Text == "Comida Italiana")
  1333. {
  1334. pontos++;
  1335. }
  1336. else if (ComboJantar.Text == "Arroz + Carne")
  1337. {
  1338. pontos += 2;
  1339. }
  1340. else if (ComboJantar.Text == "Arroz + Peixe")
  1341. {
  1342. pontos += 4;
  1343. }
  1344. else if (ComboJantar.Text == "Batatas + Carne")
  1345. {
  1346. pontos += 3;
  1347. }
  1348. else if (ComboJantar.Text == "Batatas + Peixe")
  1349. {
  1350. pontos += 5;
  1351. }
  1352. }
  1353. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1354. {
  1355. if (ComboJantar.Text == "Snacks")
  1356. {
  1357. pontos += 0;
  1358. }
  1359. else if (ComboJantar.Text == "Comida Italiana")
  1360. {
  1361. pontos++;
  1362. }
  1363. else if (ComboJantar.Text == "Arroz + Carne")
  1364. {
  1365. pontos += 2;
  1366. }
  1367. else if (ComboJantar.Text == "Arroz + Peixe")
  1368. {
  1369. pontos += 4;
  1370. }
  1371. else if (ComboJantar.Text == "Batatas + Carne")
  1372. {
  1373. pontos += 3;
  1374. }
  1375. else if (ComboJantar.Text == "Batatas + Peixe")
  1376. {
  1377. pontos += 5;
  1378. }
  1379. }
  1380. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1381. {
  1382. if (ComboJantar.Text == "Snacks")
  1383. {
  1384. pontos += 0;
  1385. }
  1386. else if (ComboJantar.Text == "Comida Italiana")
  1387. {
  1388. pontos++;
  1389. }
  1390. else if (ComboJantar.Text == "Arroz + Carne")
  1391. {
  1392. pontos += 2;
  1393. }
  1394. else if (ComboJantar.Text == "Arroz + Peixe")
  1395. {
  1396. pontos += 4;
  1397. }
  1398. else if (ComboJantar.Text == "Batatas + Carne")
  1399. {
  1400. pontos += 3;
  1401. }
  1402. else if (ComboJantar.Text == "Batatas + Peixe")
  1403. {
  1404. pontos += 5;
  1405. }
  1406. }
  1407. else
  1408. {
  1409. pontos++;
  1410. }
  1411. }
  1412. else if (ComboAlmoço.Text == "Batatas + Carne")
  1413. {
  1414. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1415. {
  1416. if (ComboJantar.Text == "Snacks")
  1417. {
  1418. pontos += 0;
  1419. }
  1420. else if (ComboJantar.Text == "Comida Italiana")
  1421. {
  1422. pontos++;
  1423. }
  1424. else if (ComboJantar.Text == "Arroz + Carne")
  1425. {
  1426. pontos += 2;
  1427. }
  1428. else if (ComboJantar.Text == "Arroz + Peixe")
  1429. {
  1430. pontos += 4;
  1431. }
  1432. else if (ComboJantar.Text == "Batatas + Carne")
  1433. {
  1434. pontos += 3;
  1435. }
  1436. else if (ComboJantar.Text == "Batatas + Peixe")
  1437. {
  1438. pontos += 5;
  1439. }
  1440. }
  1441. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1442. {
  1443. if (ComboJantar.Text == "Snacks")
  1444. {
  1445. pontos += 0;
  1446. }
  1447. else if (ComboJantar.Text == "Comida Italiana")
  1448. {
  1449. pontos++;
  1450. }
  1451. else if (ComboJantar.Text == "Arroz + Carne")
  1452. {
  1453. pontos += 2;
  1454. }
  1455. else if (ComboJantar.Text == "Arroz + Peixe")
  1456. {
  1457. pontos += 4;
  1458. }
  1459. else if (ComboJantar.Text == "Batatas + Carne")
  1460. {
  1461. pontos += 3;
  1462. }
  1463. else if (ComboJantar.Text == "Batatas + Peixe")
  1464. {
  1465. pontos += 5;
  1466. }
  1467. }
  1468. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1469. {
  1470. if (ComboJantar.Text == "Snacks")
  1471. {
  1472. pontos += 0;
  1473. }
  1474. else if (ComboJantar.Text == "Comida Italiana")
  1475. {
  1476. pontos++;
  1477. }
  1478. else if (ComboJantar.Text == "Arroz + Carne")
  1479. {
  1480. pontos += 2;
  1481. }
  1482. else if (ComboJantar.Text == "Arroz + Peixe")
  1483. {
  1484. pontos += 4;
  1485. }
  1486. else if (ComboJantar.Text == "Batatas + Carne")
  1487. {
  1488. pontos += 3;
  1489. }
  1490. else if (ComboJantar.Text == "Batatas + Peixe")
  1491. {
  1492. pontos += 5;
  1493. }
  1494. }
  1495. else
  1496. {
  1497. pontos++;
  1498. }
  1499. }
  1500. else if (ComboAlmoço.Text == "Batatas + Peixe")
  1501. {
  1502. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1503. {
  1504. if (ComboJantar.Text == "Snacks")
  1505. {
  1506. pontos += 0;
  1507. }
  1508. else if (ComboJantar.Text == "Comida Italiana")
  1509. {
  1510. pontos++;
  1511. }
  1512. else if (ComboJantar.Text == "Arroz + Carne")
  1513. {
  1514. pontos += 2;
  1515. }
  1516. else if (ComboJantar.Text == "Arroz + Peixe")
  1517. {
  1518. pontos += 4;
  1519. }
  1520. else if (ComboJantar.Text == "Batatas + Carne")
  1521. {
  1522. pontos += 3;
  1523. }
  1524. else if (ComboJantar.Text == "Batatas + Peixe")
  1525. {
  1526. pontos += 5;
  1527. }
  1528. }
  1529. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1530. {
  1531. if (ComboJantar.Text == "Snacks")
  1532. {
  1533. pontos += 0;
  1534. }
  1535. else if (ComboJantar.Text == "Comida Italiana")
  1536. {
  1537. pontos++;
  1538. }
  1539. else if (ComboJantar.Text == "Arroz + Carne")
  1540. {
  1541. pontos += 2;
  1542. }
  1543. else if (ComboJantar.Text == "Arroz + Peixe")
  1544. {
  1545. pontos += 4;
  1546. }
  1547. else if (ComboJantar.Text == "Batatas + Carne")
  1548. {
  1549. pontos += 3;
  1550. }
  1551. else if (ComboJantar.Text == "Batatas + Peixe")
  1552. {
  1553. pontos += 5;
  1554. }
  1555. }
  1556. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1557. {
  1558. if (ComboJantar.Text == "Snacks")
  1559. {
  1560. pontos += 0;
  1561. }
  1562. else if (ComboJantar.Text == "Comida Italiana")
  1563. {
  1564. pontos++;
  1565. }
  1566. else if (ComboJantar.Text == "Arroz + Carne")
  1567. {
  1568. pontos += 2;
  1569. }
  1570. else if (ComboJantar.Text == "Arroz + Peixe")
  1571. {
  1572. pontos += 4;
  1573. }
  1574. else if (ComboJantar.Text == "Batatas + Carne")
  1575. {
  1576. pontos += 3;
  1577. }
  1578. else if (ComboJantar.Text == "Batatas + Peixe")
  1579. {
  1580. pontos += 5;
  1581. }
  1582. }
  1583. else
  1584. {
  1585. if (ComboJantar.Text == "Snacks")
  1586. {
  1587. pontos += 0;
  1588. }
  1589. else if (ComboJantar.Text == "Comida Italiana")
  1590. {
  1591. pontos++;
  1592. }
  1593. else if (ComboJantar.Text == "Arroz + Carne")
  1594. {
  1595. pontos += 2;
  1596. }
  1597. else if (ComboJantar.Text == "Arroz + Peixe")
  1598. {
  1599. pontos += 4;
  1600. }
  1601. else if (ComboJantar.Text == "Batatas + Carne")
  1602. {
  1603. pontos += 3;
  1604. }
  1605. else if (ComboJantar.Text == "Batatas + Peixe")
  1606. {
  1607. pontos += 5;
  1608. }
  1609. }
  1610. }
  1611. else
  1612. {
  1613. pontos++;
  1614. }
  1615. }
  1616. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  1617. {
  1618. if (ComboAlmoço.Text == "Snacks")
  1619. {
  1620. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1621. {
  1622. if (ComboJantar.Text == "Snacks")
  1623. {
  1624. pontos += 0;
  1625. }
  1626. else if (ComboJantar.Text == "Comida Italiana")
  1627. {
  1628. pontos++;
  1629. }
  1630. else if (ComboJantar.Text == "Arroz + Carne")
  1631. {
  1632. pontos += 2;
  1633. }
  1634. else if (ComboJantar.Text == "Arroz + Peixe")
  1635. {
  1636. pontos += 4;
  1637. }
  1638. else if (ComboJantar.Text == "Batatas + Carne")
  1639. {
  1640. pontos += 3;
  1641. }
  1642. else if (ComboJantar.Text == "Batatas + Peixe")
  1643. {
  1644. pontos += 5;
  1645. }
  1646. }
  1647. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1648. {
  1649. if (ComboJantar.Text == "Snacks")
  1650. {
  1651. pontos += 0;
  1652. }
  1653. else if (ComboJantar.Text == "Comida Italiana")
  1654. {
  1655. pontos++;
  1656. }
  1657. else if (ComboJantar.Text == "Arroz + Carne")
  1658. {
  1659. pontos += 2;
  1660. }
  1661. else if (ComboJantar.Text == "Arroz + Peixe")
  1662. {
  1663. pontos += 4;
  1664. }
  1665. else if (ComboJantar.Text == "Batatas + Carne")
  1666. {
  1667. pontos += 3;
  1668. }
  1669. else if (ComboJantar.Text == "Batatas + Peixe")
  1670. {
  1671. pontos += 5;
  1672. }
  1673. }
  1674. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1675. {
  1676. if (ComboJantar.Text == "Snacks")
  1677. {
  1678. pontos ++;
  1679. }
  1680. else if (ComboJantar.Text == "Comida Italiana")
  1681. {
  1682. pontos++;
  1683. }
  1684. else if (ComboJantar.Text == "Arroz + Carne")
  1685. {
  1686. pontos += 2;
  1687. }
  1688. else if (ComboJantar.Text == "Arroz + Peixe")
  1689. {
  1690. pontos += 4;
  1691. }
  1692. else if (ComboJantar.Text == "Batatas + Carne")
  1693. {
  1694. pontos += 3;
  1695. }
  1696. else if (ComboJantar.Text == "Batatas + Peixe")
  1697. {
  1698. pontos += 5;
  1699. }
  1700. }
  1701. else
  1702. {
  1703. pontos +=0;
  1704. }
  1705. }
  1706. else if (ComboAlmoço.Text == "Comida Italiana")
  1707. {
  1708. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1709. {
  1710. if (ComboJantar.Text == "Snacks")
  1711. {
  1712. pontos ++;
  1713. }
  1714. else if (ComboJantar.Text == "Comida Italiana")
  1715. {
  1716. pontos+=0;
  1717. }
  1718. else if (ComboJantar.Text == "Arroz + Carne")
  1719. {
  1720. pontos += 2;
  1721. }
  1722. else if (ComboJantar.Text == "Arroz + Peixe")
  1723. {
  1724. pontos += 4;
  1725. }
  1726. else if (ComboJantar.Text == "Batatas + Carne")
  1727. {
  1728. pontos += 3;
  1729. }
  1730. else if (ComboJantar.Text == "Batatas + Peixe")
  1731. {
  1732. pontos += 5;
  1733. }
  1734. }
  1735. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1736. {
  1737. if (ComboJantar.Text == "Snacks")
  1738. {
  1739. pontos++;
  1740. }
  1741. else if (ComboJantar.Text == "Comida Italiana")
  1742. {
  1743. pontos += 0;
  1744. }
  1745. else if (ComboJantar.Text == "Arroz + Carne")
  1746. {
  1747. pontos += 2;
  1748. }
  1749. else if (ComboJantar.Text == "Arroz + Peixe")
  1750. {
  1751. pontos += 4;
  1752. }
  1753. else if (ComboJantar.Text == "Batatas + Carne")
  1754. {
  1755. pontos += 3;
  1756. }
  1757. else if (ComboJantar.Text == "Batatas + Peixe")
  1758. {
  1759. pontos += 5;
  1760. }
  1761. }
  1762. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1763. {
  1764. if (ComboJantar.Text == "Snacks")
  1765. {
  1766. pontos++;
  1767. }
  1768. else if (ComboJantar.Text == "Comida Italiana")
  1769. {
  1770. pontos += 0;
  1771. }
  1772. else if (ComboJantar.Text == "Arroz + Carne")
  1773. {
  1774. pontos += 2;
  1775. }
  1776. else if (ComboJantar.Text == "Arroz + Peixe")
  1777. {
  1778. pontos += 4;
  1779. }
  1780. else if (ComboJantar.Text == "Batatas + Carne")
  1781. {
  1782. pontos += 3;
  1783. }
  1784. else if (ComboJantar.Text == "Batatas + Peixe")
  1785. {
  1786. pontos += 5;
  1787. }
  1788. }
  1789. else
  1790. {
  1791. pontos++;
  1792. }
  1793. }
  1794. else if (ComboAlmoço.Text == "Arroz + Carne")
  1795. {
  1796. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1797. {
  1798. if (ComboJantar.Text == "Snacks")
  1799. {
  1800. pontos++;
  1801. }
  1802. else if (ComboJantar.Text == "Comida Italiana")
  1803. {
  1804. pontos += 0;
  1805. }
  1806. else if (ComboJantar.Text == "Arroz + Carne")
  1807. {
  1808. pontos += 2;
  1809. }
  1810. else if (ComboJantar.Text == "Arroz + Peixe")
  1811. {
  1812. pontos += 4;
  1813. }
  1814. else if (ComboJantar.Text == "Batatas + Carne")
  1815. {
  1816. pontos += 3;
  1817. }
  1818. else if (ComboJantar.Text == "Batatas + Peixe")
  1819. {
  1820. pontos += 5;
  1821. }
  1822. }
  1823. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1824. {
  1825. if (ComboJantar.Text == "Snacks")
  1826. {
  1827. pontos++;
  1828. }
  1829. else if (ComboJantar.Text == "Comida Italiana")
  1830. {
  1831. pontos += 0;
  1832. }
  1833. else if (ComboJantar.Text == "Arroz + Carne")
  1834. {
  1835. pontos += 2;
  1836. }
  1837. else if (ComboJantar.Text == "Arroz + Peixe")
  1838. {
  1839. pontos += 4;
  1840. }
  1841. else if (ComboJantar.Text == "Batatas + Carne")
  1842. {
  1843. pontos += 3;
  1844. }
  1845. else if (ComboJantar.Text == "Batatas + Peixe")
  1846. {
  1847. pontos += 5;
  1848. }
  1849. }
  1850. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1851. {
  1852. if (ComboJantar.Text == "Snacks")
  1853. {
  1854. pontos++;
  1855. }
  1856. else if (ComboJantar.Text == "Comida Italiana")
  1857. {
  1858. pontos += 0;
  1859. }
  1860. else if (ComboJantar.Text == "Arroz + Carne")
  1861. {
  1862. pontos += 2;
  1863. }
  1864. else if (ComboJantar.Text == "Arroz + Peixe")
  1865. {
  1866. pontos += 4;
  1867. }
  1868. else if (ComboJantar.Text == "Batatas + Carne")
  1869. {
  1870. pontos += 3;
  1871. }
  1872. else if (ComboJantar.Text == "Batatas + Peixe")
  1873. {
  1874. pontos += 5;
  1875. }
  1876. }
  1877. else
  1878. {
  1879. pontos ++;
  1880. }
  1881. }
  1882. else if (ComboAlmoço.Text == "Arroz + Peixe")
  1883. {
  1884. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1885. {
  1886. if (ComboJantar.Text == "Snacks")
  1887. {
  1888. pontos++;
  1889. }
  1890. else if (ComboJantar.Text == "Comida Italiana")
  1891. {
  1892. pontos += 0;
  1893. }
  1894. else if (ComboJantar.Text == "Arroz + Carne")
  1895. {
  1896. pontos += 2;
  1897. }
  1898. else if (ComboJantar.Text == "Arroz + Peixe")
  1899. {
  1900. pontos += 4;
  1901. }
  1902. else if (ComboJantar.Text == "Batatas + Carne")
  1903. {
  1904. pontos += 3;
  1905. }
  1906. else if (ComboJantar.Text == "Batatas + Peixe")
  1907. {
  1908. pontos += 5;
  1909. }
  1910. }
  1911. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  1912. {
  1913. if (ComboJantar.Text == "Snacks")
  1914. {
  1915. pontos++;
  1916. }
  1917. else if (ComboJantar.Text == "Comida Italiana")
  1918. {
  1919. pontos += 0;
  1920. }
  1921. else if (ComboJantar.Text == "Arroz + Carne")
  1922. {
  1923. pontos += 2;
  1924. }
  1925. else if (ComboJantar.Text == "Arroz + Peixe")
  1926. {
  1927. pontos += 4;
  1928. }
  1929. else if (ComboJantar.Text == "Batatas + Carne")
  1930. {
  1931. pontos += 3;
  1932. }
  1933. else if (ComboJantar.Text == "Batatas + Peixe")
  1934. {
  1935. pontos += 5;
  1936. }
  1937. }
  1938. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  1939. {
  1940. if (ComboJantar.Text == "Snacks")
  1941. {
  1942. pontos++;
  1943. }
  1944. else if (ComboJantar.Text == "Comida Italiana")
  1945. {
  1946. pontos += 0;
  1947. }
  1948. else if (ComboJantar.Text == "Arroz + Carne")
  1949. {
  1950. pontos += 2;
  1951. }
  1952. else if (ComboJantar.Text == "Arroz + Peixe")
  1953. {
  1954. pontos += 4;
  1955. }
  1956. else if (ComboJantar.Text == "Batatas + Carne")
  1957. {
  1958. pontos += 3;
  1959. }
  1960. else if (ComboJantar.Text == "Batatas + Peixe")
  1961. {
  1962. pontos += 5;
  1963. }
  1964. }
  1965. else
  1966. {
  1967. pontos++;
  1968. }
  1969. }
  1970. else if (ComboAlmoço.Text == "Batatas + Carne")
  1971. {
  1972. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  1973. {
  1974. if (ComboJantar.Text == "Snacks")
  1975. {
  1976. pontos++;
  1977. }
  1978. else if (ComboJantar.Text == "Comida Italiana")
  1979. {
  1980. pontos += 0;
  1981. }
  1982. else if (ComboJantar.Text == "Arroz + Carne")
  1983. {
  1984. pontos += 2;
  1985. }
  1986. else if (ComboJantar.Text == "Arroz + Peixe")
  1987. {
  1988. pontos += 4;
  1989. }
  1990. else if (ComboJantar.Text == "Batatas + Carne")
  1991. {
  1992. pontos += 3;
  1993. }
  1994. else if (ComboJantar.Text == "Batatas + Peixe")
  1995. {
  1996. pontos += 5;
  1997. }
  1998. }
  1999. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2000. {
  2001. if (ComboJantar.Text == "Snacks")
  2002. {
  2003. pontos++;
  2004. }
  2005. else if (ComboJantar.Text == "Comida Italiana")
  2006. {
  2007. pontos += 0;
  2008. }
  2009. else if (ComboJantar.Text == "Arroz + Carne")
  2010. {
  2011. pontos += 2;
  2012. }
  2013. else if (ComboJantar.Text == "Arroz + Peixe")
  2014. {
  2015. pontos += 4;
  2016. }
  2017. else if (ComboJantar.Text == "Batatas + Carne")
  2018. {
  2019. pontos += 3;
  2020. }
  2021. else if (ComboJantar.Text == "Batatas + Peixe")
  2022. {
  2023. pontos += 5;
  2024. }
  2025. }
  2026. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2027. {
  2028. if (ComboJantar.Text == "Snacks")
  2029. {
  2030. pontos++;
  2031. }
  2032. else if (ComboJantar.Text == "Comida Italiana")
  2033. {
  2034. pontos += 0;
  2035. }
  2036. else if (ComboJantar.Text == "Arroz + Carne")
  2037. {
  2038. pontos += 2;
  2039. }
  2040. else if (ComboJantar.Text == "Arroz + Peixe")
  2041. {
  2042. pontos += 4;
  2043. }
  2044. else if (ComboJantar.Text == "Batatas + Carne")
  2045. {
  2046. pontos += 3;
  2047. }
  2048. else if (ComboJantar.Text == "Batatas + Peixe")
  2049. {
  2050. pontos += 5;
  2051. }
  2052. }
  2053. else
  2054. {
  2055. if (ComboJantar.Text == "Snacks")
  2056. {
  2057. pontos++;
  2058. }
  2059. else if (ComboJantar.Text == "Comida Italiana")
  2060. {
  2061. pontos += 0;
  2062. }
  2063. else if (ComboJantar.Text == "Arroz + Carne")
  2064. {
  2065. pontos += 2;
  2066. }
  2067. else if (ComboJantar.Text == "Arroz + Peixe")
  2068. {
  2069. pontos += 4;
  2070. }
  2071. else if (ComboJantar.Text == "Batatas + Carne")
  2072. {
  2073. pontos += 3;
  2074. }
  2075. else if (ComboJantar.Text == "Batatas + Peixe")
  2076. {
  2077. pontos += 5;
  2078. }
  2079. }
  2080. }
  2081. else if (ComboAlmoço.Text == "Batatas + Peixe")
  2082. {
  2083. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2084. {
  2085. if (ComboJantar.Text == "Snacks")
  2086. {
  2087. pontos++;
  2088. }
  2089. else if (ComboJantar.Text == "Comida Italiana")
  2090. {
  2091. pontos += 0;
  2092. }
  2093. else if (ComboJantar.Text == "Arroz + Carne")
  2094. {
  2095. pontos += 2;
  2096. }
  2097. else if (ComboJantar.Text == "Arroz + Peixe")
  2098. {
  2099. pontos += 4;
  2100. }
  2101. else if (ComboJantar.Text == "Batatas + Carne")
  2102. {
  2103. pontos += 3;
  2104. }
  2105. else if (ComboJantar.Text == "Batatas + Peixe")
  2106. {
  2107. pontos += 5;
  2108. }
  2109. }
  2110. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2111. {
  2112. if (ComboJantar.Text == "Snacks")
  2113. {
  2114. pontos++;
  2115. }
  2116. else if (ComboJantar.Text == "Comida Italiana")
  2117. {
  2118. pontos += 0;
  2119. }
  2120. else if (ComboJantar.Text == "Arroz + Carne")
  2121. {
  2122. pontos += 2;
  2123. }
  2124. else if (ComboJantar.Text == "Arroz + Peixe")
  2125. {
  2126. pontos += 4;
  2127. }
  2128. else if (ComboJantar.Text == "Batatas + Carne")
  2129. {
  2130. pontos += 3;
  2131. }
  2132. else if (ComboJantar.Text == "Batatas + Peixe")
  2133. {
  2134. pontos += 5;
  2135. }
  2136. }
  2137. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2138. {
  2139. if (ComboJantar.Text == "Snacks")
  2140. {
  2141. pontos++;
  2142. }
  2143. else if (ComboJantar.Text == "Comida Italiana")
  2144. {
  2145. pontos += 0;
  2146. }
  2147. else if (ComboJantar.Text == "Arroz + Carne")
  2148. {
  2149. pontos += 2;
  2150. }
  2151. else if (ComboJantar.Text == "Arroz + Peixe")
  2152. {
  2153. pontos += 4;
  2154. }
  2155. else if (ComboJantar.Text == "Batatas + Carne")
  2156. {
  2157. pontos += 3;
  2158. }
  2159. else if (ComboJantar.Text == "Batatas + Peixe")
  2160. {
  2161. pontos += 5;
  2162. }
  2163. }
  2164. else
  2165. {
  2166. pontos++;
  2167. }
  2168. }
  2169. else
  2170. {
  2171. pontos++;
  2172. }
  2173. }
  2174. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  2175. {
  2176. if (ComboAlmoço.Text == "Snacks")
  2177. {
  2178. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2179. {
  2180. if (ComboJantar.Text == "Snacks")
  2181. {
  2182. pontos+=0;
  2183. }
  2184. else if (ComboJantar.Text == "Comida Italiana")
  2185. {
  2186. pontos ++;
  2187. }
  2188. else if (ComboJantar.Text == "Arroz + Carne")
  2189. {
  2190. pontos += 2;
  2191. }
  2192. else if (ComboJantar.Text == "Arroz + Peixe")
  2193. {
  2194. pontos += 4;
  2195. }
  2196. else if (ComboJantar.Text == "Batatas + Carne")
  2197. {
  2198. pontos += 3;
  2199. }
  2200. else if (ComboJantar.Text == "Batatas + Peixe")
  2201. {
  2202. pontos += 5;
  2203. }
  2204. }
  2205. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2206. {
  2207. if (ComboJantar.Text == "Snacks")
  2208. {
  2209. pontos += 0;
  2210. }
  2211. else if (ComboJantar.Text == "Comida Italiana")
  2212. {
  2213. pontos++;
  2214. }
  2215. else if (ComboJantar.Text == "Arroz + Carne")
  2216. {
  2217. pontos += 2;
  2218. }
  2219. else if (ComboJantar.Text == "Arroz + Peixe")
  2220. {
  2221. pontos += 4;
  2222. }
  2223. else if (ComboJantar.Text == "Batatas + Carne")
  2224. {
  2225. pontos += 3;
  2226. }
  2227. else if (ComboJantar.Text == "Batatas + Peixe")
  2228. {
  2229. pontos += 5;
  2230. }
  2231. }
  2232. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2233. {
  2234. if (ComboJantar.Text == "Snacks")
  2235. {
  2236. pontos += 0;
  2237. }
  2238. else if (ComboJantar.Text == "Comida Italiana")
  2239. {
  2240. pontos++;
  2241. }
  2242. else if (ComboJantar.Text == "Arroz + Carne")
  2243. {
  2244. pontos += 2;
  2245. }
  2246. else if (ComboJantar.Text == "Arroz + Peixe")
  2247. {
  2248. pontos += 4;
  2249. }
  2250. else if (ComboJantar.Text == "Batatas + Carne")
  2251. {
  2252. pontos += 3;
  2253. }
  2254. else if (ComboJantar.Text == "Batatas + Peixe")
  2255. {
  2256. pontos += 5;
  2257. }
  2258. }
  2259. else
  2260. {
  2261. pontos += 3;
  2262. }
  2263. }
  2264. else if (ComboAlmoço.Text == "Comida Italiana")
  2265. {
  2266. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2267. {
  2268. if (ComboJantar.Text == "Snacks")
  2269. {
  2270. pontos ++;
  2271. }
  2272. else if (ComboJantar.Text == "Comida Italiana")
  2273. {
  2274. pontos+=0;
  2275. }
  2276. else if (ComboJantar.Text == "Arroz + Carne")
  2277. {
  2278. pontos += 2;
  2279. }
  2280. else if (ComboJantar.Text == "Arroz + Peixe")
  2281. {
  2282. pontos += 4;
  2283. }
  2284. else if (ComboJantar.Text == "Batatas + Carne")
  2285. {
  2286. pontos += 3;
  2287. }
  2288. else if (ComboJantar.Text == "Batatas + Peixe")
  2289. {
  2290. pontos += 5;
  2291. }
  2292. }
  2293. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2294. {
  2295. if (ComboJantar.Text == "Snacks")
  2296. {
  2297. pontos++;
  2298. }
  2299. else if (ComboJantar.Text == "Comida Italiana")
  2300. {
  2301. pontos += 0;
  2302. }
  2303. else if (ComboJantar.Text == "Arroz + Carne")
  2304. {
  2305. pontos += 2;
  2306. }
  2307. else if (ComboJantar.Text == "Arroz + Peixe")
  2308. {
  2309. pontos += 4;
  2310. }
  2311. else if (ComboJantar.Text == "Batatas + Carne")
  2312. {
  2313. pontos += 3;
  2314. }
  2315. else if (ComboJantar.Text == "Batatas + Peixe")
  2316. {
  2317. pontos += 5;
  2318. }
  2319. }
  2320. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2321. {
  2322. if (ComboJantar.Text == "Snacks")
  2323. {
  2324. pontos++;
  2325. }
  2326. else if (ComboJantar.Text == "Comida Italiana")
  2327. {
  2328. pontos += 0;
  2329. }
  2330. else if (ComboJantar.Text == "Arroz + Carne")
  2331. {
  2332. pontos += 2;
  2333. }
  2334. else if (ComboJantar.Text == "Arroz + Peixe")
  2335. {
  2336. pontos += 4;
  2337. }
  2338. else if (ComboJantar.Text == "Batatas + Carne")
  2339. {
  2340. pontos += 3;
  2341. }
  2342. else if (ComboJantar.Text == "Batatas + Peixe")
  2343. {
  2344. pontos += 5;
  2345. }
  2346. }
  2347. else
  2348. {
  2349. pontos ++;
  2350. }
  2351. }
  2352. else if (ComboAlmoço.Text == "Arroz + Carne")
  2353. {
  2354. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2355. {
  2356. if (ComboJantar.Text == "Snacks")
  2357. {
  2358. pontos++;
  2359. }
  2360. else if (ComboJantar.Text == "Comida Italiana")
  2361. {
  2362. pontos += 0;
  2363. }
  2364. else if (ComboJantar.Text == "Arroz + Carne")
  2365. {
  2366. pontos += 2;
  2367. }
  2368. else if (ComboJantar.Text == "Arroz + Peixe")
  2369. {
  2370. pontos += 4;
  2371. }
  2372. else if (ComboJantar.Text == "Batatas + Carne")
  2373. {
  2374. pontos += 3;
  2375. }
  2376. else if (ComboJantar.Text == "Batatas + Peixe")
  2377. {
  2378. pontos += 5;
  2379. }
  2380. }
  2381. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2382. {
  2383. if (ComboJantar.Text == "Snacks")
  2384. {
  2385. pontos++;
  2386. }
  2387. else if (ComboJantar.Text == "Comida Italiana")
  2388. {
  2389. pontos ++;
  2390. }
  2391. else if (ComboJantar.Text == "Arroz + Carne")
  2392. {
  2393. pontos += 2;
  2394. }
  2395. else if (ComboJantar.Text == "Arroz + Peixe")
  2396. {
  2397. pontos += 4;
  2398. }
  2399. else if (ComboJantar.Text == "Batatas + Carne")
  2400. {
  2401. pontos += 3;
  2402. }
  2403. else if (ComboJantar.Text == "Batatas + Peixe")
  2404. {
  2405. pontos += 5;
  2406. }
  2407. else
  2408. {
  2409. pontos += 0;
  2410. }
  2411. }
  2412. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2413. {
  2414. if (ComboJantar.Text == "Snacks")
  2415. {
  2416. pontos++;
  2417. }
  2418. else if (ComboJantar.Text == "Comida Italiana")
  2419. {
  2420. pontos++;
  2421. }
  2422. else if (ComboJantar.Text == "Arroz + Carne")
  2423. {
  2424. pontos += 2;
  2425. }
  2426. else if (ComboJantar.Text == "Arroz + Peixe")
  2427. {
  2428. pontos += 4;
  2429. }
  2430. else if (ComboJantar.Text == "Batatas + Carne")
  2431. {
  2432. pontos += 3;
  2433. }
  2434. else if (ComboJantar.Text == "Batatas + Peixe")
  2435. {
  2436. pontos += 5;
  2437. }
  2438. else
  2439. {
  2440. pontos += 0;
  2441. }
  2442. }
  2443. else
  2444. {
  2445. if (ComboJantar.Text == "Snacks")
  2446. {
  2447. pontos++;
  2448. }
  2449. else if (ComboJantar.Text == "Comida Italiana")
  2450. {
  2451. pontos++;
  2452. }
  2453. else if (ComboJantar.Text == "Arroz + Carne")
  2454. {
  2455. pontos += 2;
  2456. }
  2457. else if (ComboJantar.Text == "Arroz + Peixe")
  2458. {
  2459. pontos += 4;
  2460. }
  2461. else if (ComboJantar.Text == "Batatas + Carne")
  2462. {
  2463. pontos += 3;
  2464. }
  2465. else if (ComboJantar.Text == "Batatas + Peixe")
  2466. {
  2467. pontos += 5;
  2468. }
  2469. else
  2470. {
  2471. pontos += 0;
  2472. }
  2473. }
  2474. }
  2475. else if (ComboAlmoço.Text == "Arroz + Peixe")
  2476. {
  2477. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2478. {
  2479. if (ComboJantar.Text == "Snacks")
  2480. {
  2481. pontos++;
  2482. }
  2483. else if (ComboJantar.Text == "Comida Italiana")
  2484. {
  2485. pontos++;
  2486. }
  2487. else if (ComboJantar.Text == "Arroz + Carne")
  2488. {
  2489. pontos += 2;
  2490. }
  2491. else if (ComboJantar.Text == "Arroz + Peixe")
  2492. {
  2493. pontos += 4;
  2494. }
  2495. else if (ComboJantar.Text == "Batatas + Carne")
  2496. {
  2497. pontos += 3;
  2498. }
  2499. else if (ComboJantar.Text == "Batatas + Peixe")
  2500. {
  2501. pontos += 5;
  2502. }
  2503. else
  2504. {
  2505. pontos += 0;
  2506. }
  2507. }
  2508. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2509. {
  2510. if (ComboJantar.Text == "Snacks")
  2511. {
  2512. pontos++;
  2513. }
  2514. else if (ComboJantar.Text == "Comida Italiana")
  2515. {
  2516. pontos++;
  2517. }
  2518. else if (ComboJantar.Text == "Arroz + Carne")
  2519. {
  2520. pontos += 2;
  2521. }
  2522. else if (ComboJantar.Text == "Arroz + Peixe")
  2523. {
  2524. pontos += 4;
  2525. }
  2526. else if (ComboJantar.Text == "Batatas + Carne")
  2527. {
  2528. pontos += 3;
  2529. }
  2530. else if (ComboJantar.Text == "Batatas + Peixe")
  2531. {
  2532. pontos += 5;
  2533. }
  2534. else
  2535. {
  2536. pontos += 0;
  2537. }
  2538. }
  2539. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2540. {
  2541. if (ComboJantar.Text == "Snacks")
  2542. {
  2543. pontos++;
  2544. }
  2545. else if (ComboJantar.Text == "Comida Italiana")
  2546. {
  2547. pontos++;
  2548. }
  2549. else if (ComboJantar.Text == "Arroz + Carne")
  2550. {
  2551. pontos += 2;
  2552. }
  2553. else if (ComboJantar.Text == "Arroz + Peixe")
  2554. {
  2555. pontos += 4;
  2556. }
  2557. else if (ComboJantar.Text == "Batatas + Carne")
  2558. {
  2559. pontos += 3;
  2560. }
  2561. else if (ComboJantar.Text == "Batatas + Peixe")
  2562. {
  2563. pontos += 5;
  2564. }
  2565. else
  2566. {
  2567. pontos += 0;
  2568. }
  2569. }
  2570. else
  2571. {
  2572. pontos += 0;
  2573. }
  2574. }
  2575. else if (ComboAlmoço.Text == "Batatas + Carne")
  2576. {
  2577. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2578. {
  2579. if (ComboJantar.Text == "Snacks")
  2580. {
  2581. pontos++;
  2582. }
  2583. else if (ComboJantar.Text == "Comida Italiana")
  2584. {
  2585. pontos++;
  2586. }
  2587. else if (ComboJantar.Text == "Arroz + Carne")
  2588. {
  2589. pontos += 2;
  2590. }
  2591. else if (ComboJantar.Text == "Arroz + Peixe")
  2592. {
  2593. pontos += 4;
  2594. }
  2595. else if (ComboJantar.Text == "Batatas + Carne")
  2596. {
  2597. pontos += 3;
  2598. }
  2599. else if (ComboJantar.Text == "Batatas + Peixe")
  2600. {
  2601. pontos += 5;
  2602. }
  2603. else
  2604. {
  2605. pontos += 0;
  2606. }
  2607. }
  2608. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2609. {
  2610. if (ComboJantar.Text == "Snacks")
  2611. {
  2612. pontos++;
  2613. }
  2614. else if (ComboJantar.Text == "Comida Italiana")
  2615. {
  2616. pontos++;
  2617. }
  2618. else if (ComboJantar.Text == "Arroz + Carne")
  2619. {
  2620. pontos += 2;
  2621. }
  2622. else if (ComboJantar.Text == "Arroz + Peixe")
  2623. {
  2624. pontos += 4;
  2625. }
  2626. else if (ComboJantar.Text == "Batatas + Carne")
  2627. {
  2628. pontos += 3;
  2629. }
  2630. else if (ComboJantar.Text == "Batatas + Peixe")
  2631. {
  2632. pontos += 5;
  2633. }
  2634. else
  2635. {
  2636. pontos += 0;
  2637. }
  2638. }
  2639. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2640. {
  2641. if (ComboJantar.Text == "Snacks")
  2642. {
  2643. pontos++;
  2644. }
  2645. else if (ComboJantar.Text == "Comida Italiana")
  2646. {
  2647. pontos++;
  2648. }
  2649. else if (ComboJantar.Text == "Arroz + Carne")
  2650. {
  2651. pontos += 2;
  2652. }
  2653. else if (ComboJantar.Text == "Arroz + Peixe")
  2654. {
  2655. pontos += 4;
  2656. }
  2657. else if (ComboJantar.Text == "Batatas + Carne")
  2658. {
  2659. pontos += 3;
  2660. }
  2661. else if (ComboJantar.Text == "Batatas + Peixe")
  2662. {
  2663. pontos += 5;
  2664. }
  2665. else
  2666. {
  2667. pontos += 0;
  2668. }
  2669. }
  2670. else
  2671. {
  2672. pontos += 0;
  2673. }
  2674. }
  2675. else if (ComboAlmoço.Text == "Batatas + Peixe")
  2676. {
  2677. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2678. {
  2679. if (ComboJantar.Text == "Snacks")
  2680. {
  2681. pontos++;
  2682. }
  2683. else if (ComboJantar.Text == "Comida Italiana")
  2684. {
  2685. pontos++;
  2686. }
  2687. else if (ComboJantar.Text == "Arroz + Carne")
  2688. {
  2689. pontos += 2;
  2690. }
  2691. else if (ComboJantar.Text == "Arroz + Peixe")
  2692. {
  2693. pontos += 4;
  2694. }
  2695. else if (ComboJantar.Text == "Batatas + Carne")
  2696. {
  2697. pontos += 3;
  2698. }
  2699. else if (ComboJantar.Text == "Batatas + Peixe")
  2700. {
  2701. pontos += 5;
  2702. }
  2703. else
  2704. {
  2705. pontos += 0;
  2706. }
  2707. }
  2708. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2709. {
  2710. if (ComboJantar.Text == "Snacks")
  2711. {
  2712. pontos++;
  2713. }
  2714. else if (ComboJantar.Text == "Comida Italiana")
  2715. {
  2716. pontos++;
  2717. }
  2718. else if (ComboJantar.Text == "Arroz + Carne")
  2719. {
  2720. pontos += 2;
  2721. }
  2722. else if (ComboJantar.Text == "Arroz + Peixe")
  2723. {
  2724. pontos += 4;
  2725. }
  2726. else if (ComboJantar.Text == "Batatas + Carne")
  2727. {
  2728. pontos += 3;
  2729. }
  2730. else if (ComboJantar.Text == "Batatas + Peixe")
  2731. {
  2732. pontos += 5;
  2733. }
  2734. else
  2735. {
  2736. pontos += 0;
  2737. }
  2738. }
  2739. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2740. {
  2741. if (ComboJantar.Text == "Snacks")
  2742. {
  2743. pontos++;
  2744. }
  2745. else if (ComboJantar.Text == "Comida Italiana")
  2746. {
  2747. pontos++;
  2748. }
  2749. else if (ComboJantar.Text == "Arroz + Carne")
  2750. {
  2751. pontos += 2;
  2752. }
  2753. else if (ComboJantar.Text == "Arroz + Peixe")
  2754. {
  2755. pontos += 4;
  2756. }
  2757. else if (ComboJantar.Text == "Batatas + Carne")
  2758. {
  2759. pontos += 3;
  2760. }
  2761. else if (ComboJantar.Text == "Batatas + Peixe")
  2762. {
  2763. pontos += 5;
  2764. }
  2765. else
  2766. {
  2767. pontos += 0;
  2768. }
  2769. }
  2770. else
  2771. {
  2772. pontos += 0;
  2773. }
  2774. }
  2775. else
  2776. {
  2777. pontos++;
  2778. }
  2779. }
  2780. }
  2781. else if (ComboPequenoAlmoço.Text == "Ovos")
  2782. {
  2783. if (ComboManha.Text == "Pão + Sumo/Leite com Chocolate")
  2784. {
  2785. if (ComboAlmoço.Text == "Snacks")
  2786. {
  2787. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2788. {
  2789. if (ComboJantar.Text == "Snacks")
  2790. {
  2791. pontos+=0;
  2792. }
  2793. else if (ComboJantar.Text == "Comida Italiana")
  2794. {
  2795. pontos+=2;
  2796. }
  2797. else if (ComboJantar.Text == "Arroz + Carne")
  2798. {
  2799. pontos += 3;
  2800. }
  2801. else if (ComboJantar.Text == "Arroz + Peixe")
  2802. {
  2803. pontos += 5;
  2804. }
  2805. else if (ComboJantar.Text == "Batatas + Carne")
  2806. {
  2807. pontos += 4;
  2808. }
  2809. else if (ComboJantar.Text == "Batatas + Peixe")
  2810. {
  2811. pontos += 6;
  2812. }
  2813. else
  2814. {
  2815. pontos ++;
  2816. }
  2817. }
  2818. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2819. {
  2820. if (ComboJantar.Text == "Snacks")
  2821. {
  2822. pontos += 0;
  2823. }
  2824. else if (ComboJantar.Text == "Comida Italiana")
  2825. {
  2826. pontos += 2;
  2827. }
  2828. else if (ComboJantar.Text == "Arroz + Carne")
  2829. {
  2830. pontos += 3;
  2831. }
  2832. else if (ComboJantar.Text == "Arroz + Peixe")
  2833. {
  2834. pontos += 5;
  2835. }
  2836. else if (ComboJantar.Text == "Batatas + Carne")
  2837. {
  2838. pontos += 4;
  2839. }
  2840. else if (ComboJantar.Text == "Batatas + Peixe")
  2841. {
  2842. pontos += 6;
  2843. }
  2844. else
  2845. {
  2846. pontos++;
  2847. }
  2848. }
  2849. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2850. {
  2851. if (ComboJantar.Text == "Snacks")
  2852. {
  2853. pontos += 0;
  2854. }
  2855. else if (ComboJantar.Text == "Comida Italiana")
  2856. {
  2857. pontos += 2;
  2858. }
  2859. else if (ComboJantar.Text == "Arroz + Carne")
  2860. {
  2861. pontos += 3;
  2862. }
  2863. else if (ComboJantar.Text == "Arroz + Peixe")
  2864. {
  2865. pontos += 5;
  2866. }
  2867. else if (ComboJantar.Text == "Batatas + Carne")
  2868. {
  2869. pontos += 4;
  2870. }
  2871. else if (ComboJantar.Text == "Batatas + Peixe")
  2872. {
  2873. pontos += 6;
  2874. }
  2875. else
  2876. {
  2877. pontos++;
  2878. }
  2879. }
  2880. else
  2881. {
  2882. if (ComboJantar.Text == "Snacks")
  2883. {
  2884. pontos += 0;
  2885. }
  2886. else if (ComboJantar.Text == "Comida Italiana")
  2887. {
  2888. pontos += 2;
  2889. }
  2890. else if (ComboJantar.Text == "Arroz + Carne")
  2891. {
  2892. pontos += 3;
  2893. }
  2894. else if (ComboJantar.Text == "Arroz + Peixe")
  2895. {
  2896. pontos += 5;
  2897. }
  2898. else if (ComboJantar.Text == "Batatas + Carne")
  2899. {
  2900. pontos += 4;
  2901. }
  2902. else if (ComboJantar.Text == "Batatas + Peixe")
  2903. {
  2904. pontos += 6;
  2905. }
  2906. else
  2907. {
  2908. pontos++;
  2909. }
  2910. }
  2911. }
  2912. else if (ComboAlmoço.Text == "Comida Italiana")
  2913. {
  2914. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  2915. {
  2916. if (ComboJantar.Text == "Snacks")
  2917. {
  2918. pontos ++;
  2919. }
  2920. else if (ComboJantar.Text == "Comida Italiana")
  2921. {
  2922. pontos +=0;
  2923. }
  2924. else if (ComboJantar.Text == "Arroz + Carne")
  2925. {
  2926. pontos += 3;
  2927. }
  2928. else if (ComboJantar.Text == "Arroz + Peixe")
  2929. {
  2930. pontos += 5;
  2931. }
  2932. else if (ComboJantar.Text == "Batatas + Carne")
  2933. {
  2934. pontos += 4;
  2935. }
  2936. else if (ComboJantar.Text == "Batatas + Peixe")
  2937. {
  2938. pontos += 6;
  2939. }
  2940. else
  2941. {
  2942. pontos++;
  2943. }
  2944. }
  2945. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  2946. {
  2947. if (ComboJantar.Text == "Snacks")
  2948. {
  2949. pontos++;
  2950. }
  2951. else if (ComboJantar.Text == "Comida Italiana")
  2952. {
  2953. pontos += 0;
  2954. }
  2955. else if (ComboJantar.Text == "Arroz + Carne")
  2956. {
  2957. pontos += 3;
  2958. }
  2959. else if (ComboJantar.Text == "Arroz + Peixe")
  2960. {
  2961. pontos += 5;
  2962. }
  2963. else if (ComboJantar.Text == "Batatas + Carne")
  2964. {
  2965. pontos += 4;
  2966. }
  2967. else if (ComboJantar.Text == "Batatas + Peixe")
  2968. {
  2969. pontos += 6;
  2970. }
  2971. else
  2972. {
  2973. pontos++;
  2974. }
  2975. }
  2976. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  2977. {
  2978. if (ComboJantar.Text == "Snacks")
  2979. {
  2980. pontos++;
  2981. }
  2982. else if (ComboJantar.Text == "Comida Italiana")
  2983. {
  2984. pontos += 0;
  2985. }
  2986. else if (ComboJantar.Text == "Arroz + Carne")
  2987. {
  2988. pontos += 3;
  2989. }
  2990. else if (ComboJantar.Text == "Arroz + Peixe")
  2991. {
  2992. pontos += 5;
  2993. }
  2994. else if (ComboJantar.Text == "Batatas + Carne")
  2995. {
  2996. pontos += 4;
  2997. }
  2998. else if (ComboJantar.Text == "Batatas + Peixe")
  2999. {
  3000. pontos += 6;
  3001. }
  3002. else
  3003. {
  3004. pontos++;
  3005. }
  3006. }
  3007. else
  3008. {
  3009. pontos += 0;
  3010. }
  3011. }
  3012. else if (ComboAlmoço.Text == "Arroz + Carne")
  3013. {
  3014. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3015. {
  3016. if (ComboJantar.Text == "Snacks")
  3017. {
  3018. pontos++;
  3019. }
  3020. else if (ComboJantar.Text == "Comida Italiana")
  3021. {
  3022. pontos ++;
  3023. }
  3024. else if (ComboJantar.Text == "Arroz + Carne")
  3025. {
  3026. pontos += 3;
  3027. }
  3028. else if (ComboJantar.Text == "Arroz + Peixe")
  3029. {
  3030. pontos += 5;
  3031. }
  3032. else if (ComboJantar.Text == "Batatas + Carne")
  3033. {
  3034. pontos += 4;
  3035. }
  3036. else if (ComboJantar.Text == "Batatas + Peixe")
  3037. {
  3038. pontos += 6;
  3039. }
  3040. else
  3041. {
  3042. pontos+=0;
  3043. }
  3044. }
  3045. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3046. {
  3047. if (ComboJantar.Text == "Snacks")
  3048. {
  3049. pontos++;
  3050. }
  3051. else if (ComboJantar.Text == "Comida Italiana")
  3052. {
  3053. pontos++;
  3054. }
  3055. else if (ComboJantar.Text == "Arroz + Carne")
  3056. {
  3057. pontos += 3;
  3058. }
  3059. else if (ComboJantar.Text == "Arroz + Peixe")
  3060. {
  3061. pontos += 5;
  3062. }
  3063. else if (ComboJantar.Text == "Batatas + Carne")
  3064. {
  3065. pontos += 4;
  3066. }
  3067. else if (ComboJantar.Text == "Batatas + Peixe")
  3068. {
  3069. pontos += 6;
  3070. }
  3071. else
  3072. {
  3073. pontos += 0;
  3074. }
  3075. }
  3076. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3077. {
  3078. if (ComboJantar.Text == "Snacks")
  3079. {
  3080. pontos++;
  3081. }
  3082. else if (ComboJantar.Text == "Comida Italiana")
  3083. {
  3084. pontos++;
  3085. }
  3086. else if (ComboJantar.Text == "Arroz + Carne")
  3087. {
  3088. pontos += 3;
  3089. }
  3090. else if (ComboJantar.Text == "Arroz + Peixe")
  3091. {
  3092. pontos += 5;
  3093. }
  3094. else if (ComboJantar.Text == "Batatas + Carne")
  3095. {
  3096. pontos += 4;
  3097. }
  3098. else if (ComboJantar.Text == "Batatas + Peixe")
  3099. {
  3100. pontos += 6;
  3101. }
  3102. else
  3103. {
  3104. pontos += 0;
  3105. }
  3106. }
  3107. else
  3108. {
  3109. pontos += 0;
  3110. }
  3111. }
  3112. else if (ComboAlmoço.Text == "Arroz + Peixe")
  3113. {
  3114. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3115. {
  3116. if (ComboJantar.Text == "Snacks")
  3117. {
  3118. pontos++;
  3119. }
  3120. else if (ComboJantar.Text == "Comida Italiana")
  3121. {
  3122. pontos++;
  3123. }
  3124. else if (ComboJantar.Text == "Arroz + Carne")
  3125. {
  3126. pontos += 3;
  3127. }
  3128. else if (ComboJantar.Text == "Arroz + Peixe")
  3129. {
  3130. pontos += 5;
  3131. }
  3132. else if (ComboJantar.Text == "Batatas + Carne")
  3133. {
  3134. pontos += 4;
  3135. }
  3136. else if (ComboJantar.Text == "Batatas + Peixe")
  3137. {
  3138. pontos += 6;
  3139. }
  3140. else
  3141. {
  3142. pontos += 0;
  3143. }
  3144. }
  3145. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3146. {
  3147. if (ComboJantar.Text == "Snacks")
  3148. {
  3149. pontos++;
  3150. }
  3151. else if (ComboJantar.Text == "Comida Italiana")
  3152. {
  3153. pontos++;
  3154. }
  3155. else if (ComboJantar.Text == "Arroz + Carne")
  3156. {
  3157. pontos += 3;
  3158. }
  3159. else if (ComboJantar.Text == "Arroz + Peixe")
  3160. {
  3161. pontos += 5;
  3162. }
  3163. else if (ComboJantar.Text == "Batatas + Carne")
  3164. {
  3165. pontos += 4;
  3166. }
  3167. else if (ComboJantar.Text == "Batatas + Peixe")
  3168. {
  3169. pontos += 6;
  3170. }
  3171. else
  3172. {
  3173. pontos += 0;
  3174. }
  3175. }
  3176. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3177. {
  3178. if (ComboJantar.Text == "Snacks")
  3179. {
  3180. pontos++;
  3181. }
  3182. else if (ComboJantar.Text == "Comida Italiana")
  3183. {
  3184. pontos++;
  3185. }
  3186. else if (ComboJantar.Text == "Arroz + Carne")
  3187. {
  3188. pontos += 3;
  3189. }
  3190. else if (ComboJantar.Text == "Arroz + Peixe")
  3191. {
  3192. pontos += 5;
  3193. }
  3194. else if (ComboJantar.Text == "Batatas + Carne")
  3195. {
  3196. pontos += 4;
  3197. }
  3198. else if (ComboJantar.Text == "Batatas + Peixe")
  3199. {
  3200. pontos += 6;
  3201. }
  3202. else
  3203. {
  3204. pontos += 0;
  3205. }
  3206. }
  3207. else
  3208. {
  3209. pontos += 0;
  3210. }
  3211. }
  3212. else if (ComboAlmoço.Text == "Batatas + Carne")
  3213. {
  3214. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3215. {
  3216. if (ComboJantar.Text == "Snacks")
  3217. {
  3218. pontos++;
  3219. }
  3220. else if (ComboJantar.Text == "Comida Italiana")
  3221. {
  3222. pontos++;
  3223. }
  3224. else if (ComboJantar.Text == "Arroz + Carne")
  3225. {
  3226. pontos += 3;
  3227. }
  3228. else if (ComboJantar.Text == "Arroz + Peixe")
  3229. {
  3230. pontos += 5;
  3231. }
  3232. else if (ComboJantar.Text == "Batatas + Carne")
  3233. {
  3234. pontos += 4;
  3235. }
  3236. else if (ComboJantar.Text == "Batatas + Peixe")
  3237. {
  3238. pontos += 6;
  3239. }
  3240. else
  3241. {
  3242. pontos += 0;
  3243. }
  3244. }
  3245. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3246. {
  3247. if (ComboJantar.Text == "Snacks")
  3248. {
  3249. pontos++;
  3250. }
  3251. else if (ComboJantar.Text == "Comida Italiana")
  3252. {
  3253. pontos++;
  3254. }
  3255. else if (ComboJantar.Text == "Arroz + Carne")
  3256. {
  3257. pontos += 3;
  3258. }
  3259. else if (ComboJantar.Text == "Arroz + Peixe")
  3260. {
  3261. pontos += 5;
  3262. }
  3263. else if (ComboJantar.Text == "Batatas + Carne")
  3264. {
  3265. pontos += 4;
  3266. }
  3267. else if (ComboJantar.Text == "Batatas + Peixe")
  3268. {
  3269. pontos += 6;
  3270. }
  3271. else
  3272. {
  3273. pontos += 0;
  3274. }
  3275. }
  3276. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3277. {
  3278. if (ComboJantar.Text == "Snacks")
  3279. {
  3280. pontos++;
  3281. }
  3282. else if (ComboJantar.Text == "Comida Italiana")
  3283. {
  3284. pontos++;
  3285. }
  3286. else if (ComboJantar.Text == "Arroz + Carne")
  3287. {
  3288. pontos += 3;
  3289. }
  3290. else if (ComboJantar.Text == "Arroz + Peixe")
  3291. {
  3292. pontos += 5;
  3293. }
  3294. else if (ComboJantar.Text == "Batatas + Carne")
  3295. {
  3296. pontos += 4;
  3297. }
  3298. else if (ComboJantar.Text == "Batatas + Peixe")
  3299. {
  3300. pontos += 6;
  3301. }
  3302. else
  3303. {
  3304. pontos += 0;
  3305. }
  3306. }
  3307. else
  3308. {
  3309. pontos += 0;
  3310. }
  3311. }
  3312. else if (ComboAlmoço.Text == "Batatas + Peixe")
  3313. {
  3314. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3315. {
  3316. if (ComboJantar.Text == "Snacks")
  3317. {
  3318. pontos++;
  3319. }
  3320. else if (ComboJantar.Text == "Comida Italiana")
  3321. {
  3322. pontos++;
  3323. }
  3324. else if (ComboJantar.Text == "Arroz + Carne")
  3325. {
  3326. pontos += 3;
  3327. }
  3328. else if (ComboJantar.Text == "Arroz + Peixe")
  3329. {
  3330. pontos += 5;
  3331. }
  3332. else if (ComboJantar.Text == "Batatas + Carne")
  3333. {
  3334. pontos += 4;
  3335. }
  3336. else if (ComboJantar.Text == "Batatas + Peixe")
  3337. {
  3338. pontos += 6;
  3339. }
  3340. else
  3341. {
  3342. pontos += 0;
  3343. }
  3344. }
  3345. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3346. {
  3347. if (ComboJantar.Text == "Snacks")
  3348. {
  3349. pontos++;
  3350. }
  3351. else if (ComboJantar.Text == "Comida Italiana")
  3352. {
  3353. pontos++;
  3354. }
  3355. else if (ComboJantar.Text == "Arroz + Carne")
  3356. {
  3357. pontos += 3;
  3358. }
  3359. else if (ComboJantar.Text == "Arroz + Peixe")
  3360. {
  3361. pontos += 5;
  3362. }
  3363. else if (ComboJantar.Text == "Batatas + Carne")
  3364. {
  3365. pontos += 4;
  3366. }
  3367. else if (ComboJantar.Text == "Batatas + Peixe")
  3368. {
  3369. pontos += 6;
  3370. }
  3371. else
  3372. {
  3373. pontos += 0;
  3374. }
  3375. }
  3376. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3377. {
  3378. if (ComboJantar.Text == "Snacks")
  3379. {
  3380. pontos++;
  3381. }
  3382. else if (ComboJantar.Text == "Comida Italiana")
  3383. {
  3384. pontos++;
  3385. }
  3386. else if (ComboJantar.Text == "Arroz + Carne")
  3387. {
  3388. pontos += 3;
  3389. }
  3390. else if (ComboJantar.Text == "Arroz + Peixe")
  3391. {
  3392. pontos += 5;
  3393. }
  3394. else if (ComboJantar.Text == "Batatas + Carne")
  3395. {
  3396. pontos += 4;
  3397. }
  3398. else if (ComboJantar.Text == "Batatas + Peixe")
  3399. {
  3400. pontos += 6;
  3401. }
  3402. else
  3403. {
  3404. pontos += 0;
  3405. }
  3406. }
  3407. else
  3408. {
  3409. pontos += 0;
  3410. }
  3411. }
  3412. else
  3413. {
  3414. pontos++;
  3415. }
  3416. }
  3417. else if (ComboManha.Text == "Croissant + Sumo/Leite com Chocolate" || ComboManha.Text == "Lanche + Sumo/Leite com Chocolate")
  3418. {
  3419. if (ComboAlmoço.Text == "Snacks")
  3420. {
  3421. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3422. {
  3423. if (ComboJantar.Text == "Snacks")
  3424. {
  3425. pontos+=0;
  3426. }
  3427. else if (ComboJantar.Text == "Comida Italiana")
  3428. {
  3429. pontos+=2;
  3430. }
  3431. else if (ComboJantar.Text == "Arroz + Carne")
  3432. {
  3433. pontos += 3;
  3434. }
  3435. else if (ComboJantar.Text == "Arroz + Peixe")
  3436. {
  3437. pontos += 5;
  3438. }
  3439. else if (ComboJantar.Text == "Batatas + Carne")
  3440. {
  3441. pontos += 4;
  3442. }
  3443. else if (ComboJantar.Text == "Batatas + Peixe")
  3444. {
  3445. pontos += 6;
  3446. }
  3447. else
  3448. {
  3449. pontos ++;
  3450. }
  3451. }
  3452. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3453. {
  3454. if (ComboJantar.Text == "Snacks")
  3455. {
  3456. pontos += 0;
  3457. }
  3458. else if (ComboJantar.Text == "Comida Italiana")
  3459. {
  3460. pontos += 2;
  3461. }
  3462. else if (ComboJantar.Text == "Arroz + Carne")
  3463. {
  3464. pontos += 3;
  3465. }
  3466. else if (ComboJantar.Text == "Arroz + Peixe")
  3467. {
  3468. pontos += 5;
  3469. }
  3470. else if (ComboJantar.Text == "Batatas + Carne")
  3471. {
  3472. pontos += 4;
  3473. }
  3474. else if (ComboJantar.Text == "Batatas + Peixe")
  3475. {
  3476. pontos += 6;
  3477. }
  3478. else
  3479. {
  3480. pontos++;
  3481. }
  3482. }
  3483. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3484. {
  3485. if (ComboJantar.Text == "Snacks")
  3486. {
  3487. pontos += 0;
  3488. }
  3489. else if (ComboJantar.Text == "Comida Italiana")
  3490. {
  3491. pontos += 2;
  3492. }
  3493. else if (ComboJantar.Text == "Arroz + Carne")
  3494. {
  3495. pontos += 3;
  3496. }
  3497. else if (ComboJantar.Text == "Arroz + Peixe")
  3498. {
  3499. pontos += 5;
  3500. }
  3501. else if (ComboJantar.Text == "Batatas + Carne")
  3502. {
  3503. pontos += 4;
  3504. }
  3505. else if (ComboJantar.Text == "Batatas + Peixe")
  3506. {
  3507. pontos += 6;
  3508. }
  3509. else
  3510. {
  3511. pontos++;
  3512. }
  3513. }
  3514. else
  3515. {
  3516. pontos += 3;
  3517. }
  3518. }
  3519. else if (ComboAlmoço.Text == "Comida Italiana")
  3520. {
  3521. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3522. {
  3523. if (ComboJantar.Text == "Snacks")
  3524. {
  3525. pontos ++;
  3526. }
  3527. else if (ComboJantar.Text == "Comida Italiana")
  3528. {
  3529. pontos += 0;
  3530. }
  3531. else if (ComboJantar.Text == "Arroz + Carne")
  3532. {
  3533. pontos += 3;
  3534. }
  3535. else if (ComboJantar.Text == "Arroz + Peixe")
  3536. {
  3537. pontos += 5;
  3538. }
  3539. else if (ComboJantar.Text == "Batatas + Carne")
  3540. {
  3541. pontos += 4;
  3542. }
  3543. else if (ComboJantar.Text == "Batatas + Peixe")
  3544. {
  3545. pontos += 6;
  3546. }
  3547. else
  3548. {
  3549. pontos++;
  3550. }
  3551. }
  3552. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3553. {
  3554. if (ComboJantar.Text == "Snacks")
  3555. {
  3556. pontos++;
  3557. }
  3558. else if (ComboJantar.Text == "Comida Italiana")
  3559. {
  3560. pontos += 0;
  3561. }
  3562. else if (ComboJantar.Text == "Arroz + Carne")
  3563. {
  3564. pontos += 3;
  3565. }
  3566. else if (ComboJantar.Text == "Arroz + Peixe")
  3567. {
  3568. pontos += 5;
  3569. }
  3570. else if (ComboJantar.Text == "Batatas + Carne")
  3571. {
  3572. pontos += 4;
  3573. }
  3574. else if (ComboJantar.Text == "Batatas + Peixe")
  3575. {
  3576. pontos += 6;
  3577. }
  3578. else
  3579. {
  3580. pontos++;
  3581. }
  3582. }
  3583. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3584. {
  3585. if (ComboJantar.Text == "Snacks")
  3586. {
  3587. pontos++;
  3588. }
  3589. else if (ComboJantar.Text == "Comida Italiana")
  3590. {
  3591. pontos += 0;
  3592. }
  3593. else if (ComboJantar.Text == "Arroz + Carne")
  3594. {
  3595. pontos += 3;
  3596. }
  3597. else if (ComboJantar.Text == "Arroz + Peixe")
  3598. {
  3599. pontos += 5;
  3600. }
  3601. else if (ComboJantar.Text == "Batatas + Carne")
  3602. {
  3603. pontos += 4;
  3604. }
  3605. else if (ComboJantar.Text == "Batatas + Peixe")
  3606. {
  3607. pontos += 6;
  3608. }
  3609. else
  3610. {
  3611. pontos++;
  3612. }
  3613. }
  3614. else
  3615. {
  3616. pontos += 0;
  3617. }
  3618. }
  3619. else if (ComboAlmoço.Text == "Arroz + Carne")
  3620. {
  3621. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3622. {
  3623. if (ComboJantar.Text == "Snacks")
  3624. {
  3625. pontos += 0;
  3626. }
  3627. else if (ComboJantar.Text == "Comida Italiana")
  3628. {
  3629. pontos++;
  3630. }
  3631. else if (ComboJantar.Text == "Arroz + Carne")
  3632. {
  3633. pontos += 3;
  3634. }
  3635. else if (ComboJantar.Text == "Arroz + Peixe")
  3636. {
  3637. pontos += 5;
  3638. }
  3639. else if (ComboJantar.Text == "Batatas + Carne")
  3640. {
  3641. pontos += 4;
  3642. }
  3643. else if (ComboJantar.Text == "Batatas + Peixe")
  3644. {
  3645. pontos += 6;
  3646. }
  3647. else
  3648. {
  3649. pontos++;
  3650. }
  3651. }
  3652. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3653. {
  3654. if (ComboJantar.Text == "Snacks")
  3655. {
  3656. pontos+=0;
  3657. }
  3658. else if (ComboJantar.Text == "Comida Italiana")
  3659. {
  3660. pontos ++;
  3661. }
  3662. else if (ComboJantar.Text == "Arroz + Carne")
  3663. {
  3664. pontos += 3;
  3665. }
  3666. else if (ComboJantar.Text == "Arroz + Peixe")
  3667. {
  3668. pontos += 5;
  3669. }
  3670. else if (ComboJantar.Text == "Batatas + Carne")
  3671. {
  3672. pontos += 4;
  3673. }
  3674. else if (ComboJantar.Text == "Batatas + Peixe")
  3675. {
  3676. pontos += 6;
  3677. }
  3678. else
  3679. {
  3680. pontos++;
  3681. }
  3682. }
  3683. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3684. {
  3685. if (ComboJantar.Text == "Snacks")
  3686. {
  3687. pontos += 0;
  3688. }
  3689. else if (ComboJantar.Text == "Comida Italiana")
  3690. {
  3691. pontos++;
  3692. }
  3693. else if (ComboJantar.Text == "Arroz + Carne")
  3694. {
  3695. pontos += 3;
  3696. }
  3697. else if (ComboJantar.Text == "Arroz + Peixe")
  3698. {
  3699. pontos += 5;
  3700. }
  3701. else if (ComboJantar.Text == "Batatas + Carne")
  3702. {
  3703. pontos += 4;
  3704. }
  3705. else if (ComboJantar.Text == "Batatas + Peixe")
  3706. {
  3707. pontos += 6;
  3708. }
  3709. else
  3710. {
  3711. pontos++;
  3712. }
  3713. }
  3714. else
  3715. {
  3716. pontos += 0;
  3717. }
  3718. }
  3719. else if (ComboAlmoço.Text == "Arroz + Peixe")
  3720. {
  3721. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3722. {
  3723. if (ComboJantar.Text == "Snacks")
  3724. {
  3725. pontos += 0;
  3726. }
  3727. else if (ComboJantar.Text == "Comida Italiana")
  3728. {
  3729. pontos++;
  3730. }
  3731. else if (ComboJantar.Text == "Arroz + Carne")
  3732. {
  3733. pontos += 3;
  3734. }
  3735. else if (ComboJantar.Text == "Arroz + Peixe")
  3736. {
  3737. pontos += 5;
  3738. }
  3739. else if (ComboJantar.Text == "Batatas + Carne")
  3740. {
  3741. pontos += 4;
  3742. }
  3743. else if (ComboJantar.Text == "Batatas + Peixe")
  3744. {
  3745. pontos += 6;
  3746. }
  3747. else
  3748. {
  3749. pontos++;
  3750. }
  3751. }
  3752. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3753. {
  3754. if (ComboJantar.Text == "Snacks")
  3755. {
  3756. pontos += 0;
  3757. }
  3758. else if (ComboJantar.Text == "Comida Italiana")
  3759. {
  3760. pontos++;
  3761. }
  3762. else if (ComboJantar.Text == "Arroz + Carne")
  3763. {
  3764. pontos += 3;
  3765. }
  3766. else if (ComboJantar.Text == "Arroz + Peixe")
  3767. {
  3768. pontos += 5;
  3769. }
  3770. else if (ComboJantar.Text == "Batatas + Carne")
  3771. {
  3772. pontos += 4;
  3773. }
  3774. else if (ComboJantar.Text == "Batatas + Peixe")
  3775. {
  3776. pontos += 6;
  3777. }
  3778. else
  3779. {
  3780. pontos++;
  3781. }
  3782. }
  3783. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3784. {
  3785. if (ComboJantar.Text == "Snacks")
  3786. {
  3787. pontos += 0;
  3788. }
  3789. else if (ComboJantar.Text == "Comida Italiana")
  3790. {
  3791. pontos++;
  3792. }
  3793. else if (ComboJantar.Text == "Arroz + Carne")
  3794. {
  3795. pontos += 3;
  3796. }
  3797. else if (ComboJantar.Text == "Arroz + Peixe")
  3798. {
  3799. pontos += 5;
  3800. }
  3801. else if (ComboJantar.Text == "Batatas + Carne")
  3802. {
  3803. pontos += 4;
  3804. }
  3805. else if (ComboJantar.Text == "Batatas + Peixe")
  3806. {
  3807. pontos += 6;
  3808. }
  3809. else
  3810. {
  3811. pontos++;
  3812. }
  3813. }
  3814. else
  3815. {
  3816. pontos += 0;
  3817. }
  3818. }
  3819. else if (ComboAlmoço.Text == "Batatas + Carne")
  3820. {
  3821. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3822. {
  3823. if (ComboJantar.Text == "Snacks")
  3824. {
  3825. pontos += 0;
  3826. }
  3827. else if (ComboJantar.Text == "Comida Italiana")
  3828. {
  3829. pontos++;
  3830. }
  3831. else if (ComboJantar.Text == "Arroz + Carne")
  3832. {
  3833. pontos += 3;
  3834. }
  3835. else if (ComboJantar.Text == "Arroz + Peixe")
  3836. {
  3837. pontos += 5;
  3838. }
  3839. else if (ComboJantar.Text == "Batatas + Carne")
  3840. {
  3841. pontos += 4;
  3842. }
  3843. else if (ComboJantar.Text == "Batatas + Peixe")
  3844. {
  3845. pontos += 6;
  3846. }
  3847. else
  3848. {
  3849. pontos++;
  3850. }
  3851. }
  3852. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3853. {
  3854. if (ComboJantar.Text == "Snacks")
  3855. {
  3856. pontos += 0;
  3857. }
  3858. else if (ComboJantar.Text == "Comida Italiana")
  3859. {
  3860. pontos++;
  3861. }
  3862. else if (ComboJantar.Text == "Arroz + Carne")
  3863. {
  3864. pontos += 3;
  3865. }
  3866. else if (ComboJantar.Text == "Arroz + Peixe")
  3867. {
  3868. pontos += 5;
  3869. }
  3870. else if (ComboJantar.Text == "Batatas + Carne")
  3871. {
  3872. pontos += 4;
  3873. }
  3874. else if (ComboJantar.Text == "Batatas + Peixe")
  3875. {
  3876. pontos += 6;
  3877. }
  3878. else
  3879. {
  3880. pontos++;
  3881. }
  3882. }
  3883. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3884. {
  3885. if (ComboJantar.Text == "Snacks")
  3886. {
  3887. pontos += 0;
  3888. }
  3889. else if (ComboJantar.Text == "Comida Italiana")
  3890. {
  3891. pontos++;
  3892. }
  3893. else if (ComboJantar.Text == "Arroz + Carne")
  3894. {
  3895. pontos += 3;
  3896. }
  3897. else if (ComboJantar.Text == "Arroz + Peixe")
  3898. {
  3899. pontos += 5;
  3900. }
  3901. else if (ComboJantar.Text == "Batatas + Carne")
  3902. {
  3903. pontos += 4;
  3904. }
  3905. else if (ComboJantar.Text == "Batatas + Peixe")
  3906. {
  3907. pontos += 6;
  3908. }
  3909. else
  3910. {
  3911. pontos++;
  3912. }
  3913. }
  3914. else
  3915. {
  3916. pontos += 0;
  3917. }
  3918. }
  3919. else if (ComboAlmoço.Text == "Batatas + Peixe")
  3920. {
  3921. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  3922. {
  3923. if (ComboJantar.Text == "Snacks")
  3924. {
  3925. pontos += 0;
  3926. }
  3927. else if (ComboJantar.Text == "Comida Italiana")
  3928. {
  3929. pontos++;
  3930. }
  3931. else if (ComboJantar.Text == "Arroz + Carne")
  3932. {
  3933. pontos += 3;
  3934. }
  3935. else if (ComboJantar.Text == "Arroz + Peixe")
  3936. {
  3937. pontos += 5;
  3938. }
  3939. else if (ComboJantar.Text == "Batatas + Carne")
  3940. {
  3941. pontos += 4;
  3942. }
  3943. else if (ComboJantar.Text == "Batatas + Peixe")
  3944. {
  3945. pontos += 6;
  3946. }
  3947. else
  3948. {
  3949. pontos++;
  3950. }
  3951. }
  3952. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  3953. {
  3954. if (ComboJantar.Text == "Snacks")
  3955. {
  3956. pontos += 0;
  3957. }
  3958. else if (ComboJantar.Text == "Comida Italiana")
  3959. {
  3960. pontos++;
  3961. }
  3962. else if (ComboJantar.Text == "Arroz + Carne")
  3963. {
  3964. pontos += 3;
  3965. }
  3966. else if (ComboJantar.Text == "Arroz + Peixe")
  3967. {
  3968. pontos += 5;
  3969. }
  3970. else if (ComboJantar.Text == "Batatas + Carne")
  3971. {
  3972. pontos += 4;
  3973. }
  3974. else if (ComboJantar.Text == "Batatas + Peixe")
  3975. {
  3976. pontos += 6;
  3977. }
  3978. else
  3979. {
  3980. pontos++;
  3981. }
  3982. }
  3983. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  3984. {
  3985. if (ComboJantar.Text == "Snacks")
  3986. {
  3987. pontos += 0;
  3988. }
  3989. else if (ComboJantar.Text == "Comida Italiana")
  3990. {
  3991. pontos++;
  3992. }
  3993. else if (ComboJantar.Text == "Arroz + Carne")
  3994. {
  3995. pontos += 3;
  3996. }
  3997. else if (ComboJantar.Text == "Arroz + Peixe")
  3998. {
  3999. pontos += 5;
  4000. }
  4001. else if (ComboJantar.Text == "Batatas + Carne")
  4002. {
  4003. pontos += 4;
  4004. }
  4005. else if (ComboJantar.Text == "Batatas + Peixe")
  4006. {
  4007. pontos += 6;
  4008. }
  4009. else
  4010. {
  4011. pontos++;
  4012. }
  4013. }
  4014. else
  4015. {
  4016. pontos += 0;
  4017. }
  4018. }
  4019. else
  4020. {
  4021.  
  4022. }
  4023. }
  4024. else if (ComboManha.Text == "Barra de Cereais + Sumo/Leite com Chocolate")
  4025. {
  4026. if (ComboAlmoço.Text == "Snacks")
  4027. {
  4028. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4029. {
  4030. if (ComboJantar.Text == "Snacks")
  4031. {
  4032. pontos += 0;
  4033. }
  4034. else if (ComboJantar.Text == "Comida Italiana")
  4035. {
  4036. pontos++;
  4037. }
  4038. else if (ComboJantar.Text == "Arroz + Carne")
  4039. {
  4040. pontos += 3;
  4041. }
  4042. else if (ComboJantar.Text == "Arroz + Peixe")
  4043. {
  4044. pontos += 5;
  4045. }
  4046. else if (ComboJantar.Text == "Batatas + Carne")
  4047. {
  4048. pontos += 4;
  4049. }
  4050. else if (ComboJantar.Text == "Batatas + Peixe")
  4051. {
  4052. pontos += 6;
  4053. }
  4054. else
  4055. {
  4056. pontos++;
  4057. }
  4058. }
  4059. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4060. {
  4061. if (ComboJantar.Text == "Snacks")
  4062. {
  4063. pontos += 0;
  4064. }
  4065. else if (ComboJantar.Text == "Comida Italiana")
  4066. {
  4067. pontos++;
  4068. }
  4069. else if (ComboJantar.Text == "Arroz + Carne")
  4070. {
  4071. pontos += 3;
  4072. }
  4073. else if (ComboJantar.Text == "Arroz + Peixe")
  4074. {
  4075. pontos += 5;
  4076. }
  4077. else if (ComboJantar.Text == "Batatas + Carne")
  4078. {
  4079. pontos += 4;
  4080. }
  4081. else if (ComboJantar.Text == "Batatas + Peixe")
  4082. {
  4083. pontos += 6;
  4084. }
  4085. else
  4086. {
  4087. pontos++;
  4088. }
  4089. }
  4090. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4091. {
  4092. if (ComboJantar.Text == "Snacks")
  4093. {
  4094. pontos += 0;
  4095. }
  4096. else if (ComboJantar.Text == "Comida Italiana")
  4097. {
  4098. pontos++;
  4099. }
  4100. else if (ComboJantar.Text == "Arroz + Carne")
  4101. {
  4102. pontos += 3;
  4103. }
  4104. else if (ComboJantar.Text == "Arroz + Peixe")
  4105. {
  4106. pontos += 5;
  4107. }
  4108. else if (ComboJantar.Text == "Batatas + Carne")
  4109. {
  4110. pontos += 4;
  4111. }
  4112. else if (ComboJantar.Text == "Batatas + Peixe")
  4113. {
  4114. pontos += 6;
  4115. }
  4116. else
  4117. {
  4118. pontos++;
  4119. }
  4120. }
  4121. else
  4122. {
  4123. pontos++;
  4124. }
  4125. }
  4126. else if (ComboAlmoço.Text == "Comida Italiana")
  4127. {
  4128. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4129. {
  4130. if (ComboJantar.Text == "Snacks")
  4131. {
  4132. pontos += 0;
  4133. }
  4134. else if (ComboJantar.Text == "Comida Italiana")
  4135. {
  4136. pontos++;
  4137. }
  4138. else if (ComboJantar.Text == "Arroz + Carne")
  4139. {
  4140. pontos += 3;
  4141. }
  4142. else if (ComboJantar.Text == "Arroz + Peixe")
  4143. {
  4144. pontos += 5;
  4145. }
  4146. else if (ComboJantar.Text == "Batatas + Carne")
  4147. {
  4148. pontos += 4;
  4149. }
  4150. else if (ComboJantar.Text == "Batatas + Peixe")
  4151. {
  4152. pontos += 6;
  4153. }
  4154. else
  4155. {
  4156. pontos++;
  4157. }
  4158. }
  4159. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4160. {
  4161. if (ComboJantar.Text == "Snacks")
  4162. {
  4163. pontos += 0;
  4164. }
  4165. else if (ComboJantar.Text == "Comida Italiana")
  4166. {
  4167. pontos++;
  4168. }
  4169. else if (ComboJantar.Text == "Arroz + Carne")
  4170. {
  4171. pontos += 3;
  4172. }
  4173. else if (ComboJantar.Text == "Arroz + Peixe")
  4174. {
  4175. pontos += 5;
  4176. }
  4177. else if (ComboJantar.Text == "Batatas + Carne")
  4178. {
  4179. pontos += 4;
  4180. }
  4181. else if (ComboJantar.Text == "Batatas + Peixe")
  4182. {
  4183. pontos += 6;
  4184. }
  4185. else
  4186. {
  4187. pontos++;
  4188. }
  4189. }
  4190. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4191. {
  4192. if (ComboJantar.Text == "Snacks")
  4193. {
  4194. pontos += 0;
  4195. }
  4196. else if (ComboJantar.Text == "Comida Italiana")
  4197. {
  4198. pontos++;
  4199. }
  4200. else if (ComboJantar.Text == "Arroz + Carne")
  4201. {
  4202. pontos += 3;
  4203. }
  4204. else if (ComboJantar.Text == "Arroz + Peixe")
  4205. {
  4206. pontos += 5;
  4207. }
  4208. else if (ComboJantar.Text == "Batatas + Carne")
  4209. {
  4210. pontos += 4;
  4211. }
  4212. else if (ComboJantar.Text == "Batatas + Peixe")
  4213. {
  4214. pontos += 6;
  4215. }
  4216. else
  4217. {
  4218. pontos++;
  4219. }
  4220. }
  4221. else
  4222. {
  4223. pontos++;
  4224. }
  4225. }
  4226. else if (ComboAlmoço.Text == "Arroz + Carne")
  4227. {
  4228. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4229. {
  4230. if (ComboJantar.Text == "Snacks")
  4231. {
  4232. pontos += 0;
  4233. }
  4234. else if (ComboJantar.Text == "Comida Italiana")
  4235. {
  4236. pontos++;
  4237. }
  4238. else if (ComboJantar.Text == "Arroz + Carne")
  4239. {
  4240. pontos += 3;
  4241. }
  4242. else if (ComboJantar.Text == "Arroz + Peixe")
  4243. {
  4244. pontos += 5;
  4245. }
  4246. else if (ComboJantar.Text == "Batatas + Carne")
  4247. {
  4248. pontos += 4;
  4249. }
  4250. else if (ComboJantar.Text == "Batatas + Peixe")
  4251. {
  4252. pontos += 6;
  4253. }
  4254. else
  4255. {
  4256. pontos++;
  4257. }
  4258. }
  4259. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4260. {
  4261. if (ComboJantar.Text == "Snacks")
  4262. {
  4263. pontos += 0;
  4264. }
  4265. else if (ComboJantar.Text == "Comida Italiana")
  4266. {
  4267. pontos++;
  4268. }
  4269. else if (ComboJantar.Text == "Arroz + Carne")
  4270. {
  4271. pontos += 3;
  4272. }
  4273. else if (ComboJantar.Text == "Arroz + Peixe")
  4274. {
  4275. pontos += 5;
  4276. }
  4277. else if (ComboJantar.Text == "Batatas + Carne")
  4278. {
  4279. pontos += 4;
  4280. }
  4281. else if (ComboJantar.Text == "Batatas + Peixe")
  4282. {
  4283. pontos += 6;
  4284. }
  4285. else
  4286. {
  4287. pontos++;
  4288. }
  4289. }
  4290. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4291. {
  4292. if (ComboJantar.Text == "Snacks")
  4293. {
  4294. pontos += 0;
  4295. }
  4296. else if (ComboJantar.Text == "Comida Italiana")
  4297. {
  4298. pontos++;
  4299. }
  4300. else if (ComboJantar.Text == "Arroz + Carne")
  4301. {
  4302. pontos += 3;
  4303. }
  4304. else if (ComboJantar.Text == "Arroz + Peixe")
  4305. {
  4306. pontos += 5;
  4307. }
  4308. else if (ComboJantar.Text == "Batatas + Carne")
  4309. {
  4310. pontos += 4;
  4311. }
  4312. else if (ComboJantar.Text == "Batatas + Peixe")
  4313. {
  4314. pontos += 6;
  4315. }
  4316. else
  4317. {
  4318. pontos++;
  4319. }
  4320. }
  4321. else
  4322. {
  4323. pontos++;
  4324. }
  4325. }
  4326. else if (ComboAlmoço.Text == "Arroz + Peixe")
  4327. {
  4328. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4329. {
  4330. if (ComboJantar.Text == "Snacks")
  4331. {
  4332. pontos += 0;
  4333. }
  4334. else if (ComboJantar.Text == "Comida Italiana")
  4335. {
  4336. pontos++;
  4337. }
  4338. else if (ComboJantar.Text == "Arroz + Carne")
  4339. {
  4340. pontos += 3;
  4341. }
  4342. else if (ComboJantar.Text == "Arroz + Peixe")
  4343. {
  4344. pontos += 5;
  4345. }
  4346. else if (ComboJantar.Text == "Batatas + Carne")
  4347. {
  4348. pontos += 4;
  4349. }
  4350. else if (ComboJantar.Text == "Batatas + Peixe")
  4351. {
  4352. pontos += 6;
  4353. }
  4354. else
  4355. {
  4356. pontos++;
  4357. }
  4358. }
  4359. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4360. {
  4361. if (ComboJantar.Text == "Snacks")
  4362. {
  4363. pontos += 0;
  4364. }
  4365. else if (ComboJantar.Text == "Comida Italiana")
  4366. {
  4367. pontos++;
  4368. }
  4369. else if (ComboJantar.Text == "Arroz + Carne")
  4370. {
  4371. pontos += 3;
  4372. }
  4373. else if (ComboJantar.Text == "Arroz + Peixe")
  4374. {
  4375. pontos += 5;
  4376. }
  4377. else if (ComboJantar.Text == "Batatas + Carne")
  4378. {
  4379. pontos += 4;
  4380. }
  4381. else if (ComboJantar.Text == "Batatas + Peixe")
  4382. {
  4383. pontos += 6;
  4384. }
  4385. else
  4386. {
  4387. pontos++;
  4388. }
  4389. }
  4390. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4391. {
  4392. if (ComboJantar.Text == "Snacks")
  4393. {
  4394. pontos += 0;
  4395. }
  4396. else if (ComboJantar.Text == "Comida Italiana")
  4397. {
  4398. pontos++;
  4399. }
  4400. else if (ComboJantar.Text == "Arroz + Carne")
  4401. {
  4402. pontos += 3;
  4403. }
  4404. else if (ComboJantar.Text == "Arroz + Peixe")
  4405. {
  4406. pontos += 5;
  4407. }
  4408. else if (ComboJantar.Text == "Batatas + Carne")
  4409. {
  4410. pontos += 4;
  4411. }
  4412. else if (ComboJantar.Text == "Batatas + Peixe")
  4413. {
  4414. pontos += 6;
  4415. }
  4416. else
  4417. {
  4418. pontos++;
  4419. }
  4420. }
  4421. else
  4422. {
  4423. pontos++;
  4424. }
  4425. }
  4426. else if (ComboAlmoço.Text == "Batatas + Carne")
  4427. {
  4428. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4429. {
  4430. if (ComboJantar.Text == "Snacks")
  4431. {
  4432. pontos += 0;
  4433. }
  4434. else if (ComboJantar.Text == "Comida Italiana")
  4435. {
  4436. pontos++;
  4437. }
  4438. else if (ComboJantar.Text == "Arroz + Carne")
  4439. {
  4440. pontos += 3;
  4441. }
  4442. else if (ComboJantar.Text == "Arroz + Peixe")
  4443. {
  4444. pontos += 5;
  4445. }
  4446. else if (ComboJantar.Text == "Batatas + Carne")
  4447. {
  4448. pontos += 4;
  4449. }
  4450. else if (ComboJantar.Text == "Batatas + Peixe")
  4451. {
  4452. pontos += 6;
  4453. }
  4454. else
  4455. {
  4456. pontos++;
  4457. }
  4458. }
  4459. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4460. {
  4461. if (ComboJantar.Text == "Snacks")
  4462. {
  4463. pontos += 0;
  4464. }
  4465. else if (ComboJantar.Text == "Comida Italiana")
  4466. {
  4467. pontos++;
  4468. }
  4469. else if (ComboJantar.Text == "Arroz + Carne")
  4470. {
  4471. pontos += 3;
  4472. }
  4473. else if (ComboJantar.Text == "Arroz + Peixe")
  4474. {
  4475. pontos += 5;
  4476. }
  4477. else if (ComboJantar.Text == "Batatas + Carne")
  4478. {
  4479. pontos += 4;
  4480. }
  4481. else if (ComboJantar.Text == "Batatas + Peixe")
  4482. {
  4483. pontos += 6;
  4484. }
  4485. else
  4486. {
  4487. pontos++;
  4488. }
  4489. }
  4490. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4491. {
  4492. if (ComboJantar.Text == "Snacks")
  4493. {
  4494. pontos += 0;
  4495. }
  4496. else if (ComboJantar.Text == "Comida Italiana")
  4497. {
  4498. pontos++;
  4499. }
  4500. else if (ComboJantar.Text == "Arroz + Carne")
  4501. {
  4502. pontos += 3;
  4503. }
  4504. else if (ComboJantar.Text == "Arroz + Peixe")
  4505. {
  4506. pontos += 5;
  4507. }
  4508. else if (ComboJantar.Text == "Batatas + Carne")
  4509. {
  4510. pontos += 4;
  4511. }
  4512. else if (ComboJantar.Text == "Batatas + Peixe")
  4513. {
  4514. pontos += 6;
  4515. }
  4516. else
  4517. {
  4518. pontos++;
  4519. }
  4520. }
  4521. else
  4522. {
  4523. pontos++;
  4524. }
  4525. }
  4526. else if (ComboAlmoço.Text == "Batatas + Peixe")
  4527. {
  4528. if (ComboTarde.Text == "Pão + Sumo/Leite com Chocolate")
  4529. {
  4530. if (ComboJantar.Text == "Snacks")
  4531. {
  4532. pontos += 0;
  4533. }
  4534. else if (ComboJantar.Text == "Comida Italiana")
  4535. {
  4536. pontos++;
  4537. }
  4538. else if (ComboJantar.Text == "Arroz + Carne")
  4539. {
  4540. pontos += 3;
  4541. }
  4542. else if (ComboJantar.Text == "Arroz + Peixe")
  4543. {
  4544. pontos += 5;
  4545. }
  4546. else if (ComboJantar.Text == "Batatas + Carne")
  4547. {
  4548. pontos += 4;
  4549. }
  4550. else if (ComboJantar.Text == "Batatas + Peixe")
  4551. {
  4552. pontos += 6;
  4553. }
  4554. else
  4555. {
  4556. pontos++;
  4557. }
  4558. }
  4559. else if (ComboTarde.Text == "Croissant + Sumo/Leite com Chocolate" || ComboTarde.Text == "Lanche + Sumo/Leite com Chocolate")
  4560. {
  4561. if (ComboJantar.Text == "Snacks")
  4562. {
  4563. pontos += 0;
  4564. }
  4565. else if (ComboJantar.Text == "Comida Italiana")
  4566. {
  4567. pontos++;
  4568. }
  4569. else if (ComboJantar.Text == "Arroz + Carne")
  4570. {
  4571. pontos += 3;
  4572. }
  4573. else if (ComboJantar.Text == "Arroz + Peixe")
  4574. {
  4575. pontos += 5;
  4576. }
  4577. else if (ComboJantar.Text == "Batatas + Carne")
  4578. {
  4579. pontos += 4;
  4580. }
  4581. else if (ComboJantar.Text == "Batatas + Peixe")
  4582. {
  4583. pontos += 6;
  4584. }
  4585. else
  4586. {
  4587. pontos++;
  4588. }
  4589. }
  4590. else if (ComboTarde.Text == "Barra de cereais + Sumo/Leite com Chocolate")
  4591. {
  4592. if (ComboJantar.Text == "Snacks")
  4593. {
  4594. pontos += 0;
  4595. }
  4596. else if (ComboJantar.Text == "Comida Italiana")
  4597. {
  4598. pontos++;
  4599. }
  4600. else if (ComboJantar.Text == "Arroz + Carne")
  4601. {
  4602. pontos += 3;
  4603. }
  4604. else if (ComboJantar.Text == "Arroz + Peixe")
  4605. {
  4606. pontos += 5;
  4607. }
  4608. else if (ComboJantar.Text == "Batatas + Carne")
  4609. {
  4610. pontos += 4;
  4611. }
  4612. else if (ComboJantar.Text == "Batatas + Peixe")
  4613. {
  4614. pontos += 6;
  4615. }
  4616. else
  4617. {
  4618. pontos++;
  4619. }
  4620. }
  4621. else
  4622. {
  4623. pontos++;
  4624. }
  4625. }
  4626. else
  4627. {
  4628.  
  4629. }
  4630. }
  4631. else
  4632. {
  4633.  
  4634. }
  4635. }
  4636. }
  4637. private void BotaoExp_Click(object sender, EventArgs e)
  4638. {
  4639. SaveFileDialog guardar = new SaveFileDialog();
  4640. guardar.Filter = "Ficheiro de Texto | *.txt";
  4641. guardar.FileName = nome.Text;
  4642. if (guardar.ShowDialog() == DialogResult.OK)
  4643. {
  4644. string escrever;
  4645. double total = (pontos * 100) / 23, imc = Math.Round(peso / Math.Pow(altura, 2), 2);
  4646. if (total < 12.5)
  4647. {
  4648. escrever = "Nome: " + nome.Text + "\nData de nascimento: " + ComboDia.Text + ComboMes.Text + ComboAno.Text + "\nIMC: " + imc + "\nEstado: Não Saudável\nPontos: " + total + " (em total de 25 pontos)\n";
  4649. }
  4650. else
  4651. {
  4652. escrever = "Nome: " + nome.Text + "\nData de nascimento: " + ComboDia.Text + ComboMes.Text + ComboAno.Text + "\nIMC: " + imc + "\nEstado: Saudável\nPontos: " + total + " (em total de 25 pontos)\n";
  4653. }
  4654. string caminho = guardar.FileName;
  4655. BinaryWriter binaryWriter = new BinaryWriter(File.Create(caminho));
  4656. binaryWriter.Write(escrever);
  4657. binaryWriter.Dispose();
  4658. }
  4659. }
  4660.  
  4661. private void ComboAtividade_SelectedIndexChanged(object sender, EventArgs e)
  4662. {
  4663. if (ComboAtividade.Text == "Fraca (0 - 1 vez por semana)")
  4664. {
  4665. pontos++;
  4666. }
  4667. else if (ComboAtividade.Text == "Média (2 - 3 vezes por semana)")
  4668. {
  4669. pontos += 2;
  4670. }
  4671. else if (ComboAtividade.Text == "Alta (3 - 5 vez por semana)")
  4672. {
  4673. pontos += 3;
  4674. }
  4675. else if (ComboAtividade.Text == "Extrema (5 - 7 vez por semana)")
  4676. {
  4677. pontos += 4;
  4678. }
  4679. }
  4680.  
  4681. private void CaixaPeso_TextChanged(object sender, EventArgs e)
  4682. {
  4683. bool resposta = double.TryParse(CaixaPeso.Text, out peso);
  4684. if (resposta == false)
  4685. {
  4686. MessageBox.Show("Peso inválido! Não se aceita pontos \".\"", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
  4687. CaixaAltura.Focus();
  4688. }
  4689. }
  4690. }
  4691. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement