Menu.xaml.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace KFC.windows
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для Menu.xaml
  18. /// </summary>
  19. public partial class Menu : Window
  20. {
  21. public string bracket = "";
  22. public int sum = 0;
  23. public Menu()
  24. {
  25. InitializeComponent();
  26. }
  27. private void Button_Click(object sender, RoutedEventArgs e)
  28. {
  29. sum += 135;
  30. tbfin.AppendText(Environment.NewLine + "Биг\t\t\t135р.");
  31. }
  32. private void Button_Click_1(object sender, RoutedEventArgs e)
  33. {
  34. sum += 215;
  35. tbfin.AppendText(Environment.NewLine + "Зингер\t\t\t215р.");
  36. }
  37. private void Button_Click_2(object sender, RoutedEventArgs e)
  38. {
  39. sum += 135;
  40. tbfin.AppendText(Environment.NewLine + "О.Сандерс\t\t\t135р.");
  41. }
  42. private void Button_Click_3(object sender, RoutedEventArgs e)
  43. {
  44. sum += 110;
  45. tbfin.AppendText(Environment.NewLine + "Сандерс\t\t\t110р.");
  46. }
  47. private void Button_Click_4(object sender, RoutedEventArgs e)
  48. {
  49. sum += 150;
  50. tbfin.AppendText(Environment.NewLine + "Темный\t\t\t150р.");
  51. }
  52. private void Button_Click_5(object sender, RoutedEventArgs e)
  53. {
  54. sum += 170;
  55. tbfin.AppendText(Environment.NewLine + "Шефбергер\t\t\t170р.");
  56. }
  57. private void Button_Click_6(object sender, RoutedEventArgs e)
  58. {
  59. sum += 135;
  60. tbfin.AppendText(Environment.NewLine + "Маленькое мороженое\t\t\t135р.");
  61. }
  62. private void Button_Click_7(object sender, RoutedEventArgs e)
  63. {
  64. sum += 215;
  65. tbfin.AppendText(Environment.NewLine + "Большое мороженое\t\t\t215р.");
  66. }
  67. private void Button_Click_8(object sender, RoutedEventArgs e)
  68. {
  69. sum += 135;
  70. tbfin.AppendText(Environment.NewLine + "Обычный твистер\t\t\t135р.");
  71. }
  72. private void Button_Click_9(object sender, RoutedEventArgs e)
  73. {
  74. sum += 215;
  75. tbfin.AppendText(Environment.NewLine + "2 твистера\t\t\t215р.");
  76. }
  77. private void Button_Click_10(object sender, RoutedEventArgs e)
  78. {
  79. sum += 110;
  80. tbfin.AppendText(Environment.NewLine + "Маленький твистер\t\t\t110р.");
  81. }
  82. private void Button_Click_11(object sender, RoutedEventArgs e)
  83. {
  84. sum += 135;
  85. tbfin.AppendText(Environment.NewLine + "Картошка фри\t\t\t135р.");
  86. }
  87. private void Button_Click_12(object sender, RoutedEventArgs e)
  88. {
  89. sum += 215;
  90. tbfin.AppendText(Environment.NewLine + "2 большие кортошки фри\t\t\t215р.");
  91. }
  92. private void Button_Click_13(object sender, RoutedEventArgs e)
  93. {
  94. sum += 110;
  95. tbfin.AppendText(Environment.NewLine + "2 маленькие картошки фри\t\t\t110р.");
  96. }
  97. public void Update(object sender, RadialGradientBrush e)
  98. {
  99. itog.Content = "Итог " + sum;
  100. }
  101. private void Button_Click_14(object sender, RoutedEventArgs e)
  102. {
  103. tbfin.Visibility = Visibility.Visible;
  104. }
  105. }
  106. }