123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace KFC.windows
- {
- /// <summary>
- /// Логика взаимодействия для Menu.xaml
- /// </summary>
- public partial class Menu : Window
- {
- public string bracket = "";
- public int sum = 0;
- public Menu()
- {
- InitializeComponent();
-
- }
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- sum += 135;
- tbfin.AppendText(Environment.NewLine + "Биг\t\t\t135р.");
- }
- private void Button_Click_1(object sender, RoutedEventArgs e)
- {
- sum += 215;
- tbfin.AppendText(Environment.NewLine + "Зингер\t\t\t215р.");
- }
- private void Button_Click_2(object sender, RoutedEventArgs e)
- {
- sum += 135;
- tbfin.AppendText(Environment.NewLine + "О.Сандерс\t\t\t135р.");
- }
- private void Button_Click_3(object sender, RoutedEventArgs e)
- {
- sum += 110;
- tbfin.AppendText(Environment.NewLine + "Сандерс\t\t\t110р.");
- }
- private void Button_Click_4(object sender, RoutedEventArgs e)
- {
- sum += 150;
- tbfin.AppendText(Environment.NewLine + "Темный\t\t\t150р.");
- }
- private void Button_Click_5(object sender, RoutedEventArgs e)
- {
- sum += 170;
- tbfin.AppendText(Environment.NewLine + "Шефбергер\t\t\t170р.");
- }
- private void Button_Click_6(object sender, RoutedEventArgs e)
- {
- sum += 135;
- tbfin.AppendText(Environment.NewLine + "Маленькое мороженое\t\t\t135р.");
- }
- private void Button_Click_7(object sender, RoutedEventArgs e)
- {
- sum += 215;
- tbfin.AppendText(Environment.NewLine + "Большое мороженое\t\t\t215р.");
- }
- private void Button_Click_8(object sender, RoutedEventArgs e)
- {
- sum += 135;
- tbfin.AppendText(Environment.NewLine + "Обычный твистер\t\t\t135р.");
- }
- private void Button_Click_9(object sender, RoutedEventArgs e)
- {
- sum += 215;
- tbfin.AppendText(Environment.NewLine + "2 твистера\t\t\t215р.");
- }
- private void Button_Click_10(object sender, RoutedEventArgs e)
- {
- sum += 110;
- tbfin.AppendText(Environment.NewLine + "Маленький твистер\t\t\t110р.");
- }
- private void Button_Click_11(object sender, RoutedEventArgs e)
- {
- sum += 135;
- tbfin.AppendText(Environment.NewLine + "Картошка фри\t\t\t135р.");
- }
- private void Button_Click_12(object sender, RoutedEventArgs e)
- {
- sum += 215;
- tbfin.AppendText(Environment.NewLine + "2 большие кортошки фри\t\t\t215р.");
- }
- private void Button_Click_13(object sender, RoutedEventArgs e)
- {
- sum += 110;
- tbfin.AppendText(Environment.NewLine + "2 маленькие картошки фри\t\t\t110р.");
- }
- public void Update(object sender, RadialGradientBrush e)
- {
- itog.Content = "Итог " + sum;
- }
- private void Button_Click_14(object sender, RoutedEventArgs e)
- {
- tbfin.Visibility = Visibility.Visible;
- }
-
- }
- }
|