Sfoglia il codice sorgente

Добавьте файлы проекта.

Алёна Плотникова 3 anni fa
parent
commit
b67f67897a

+ 20 - 0
UnitTestProject/Properties/AssemblyInfo.cs

@@ -0,0 +1,20 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("UnitTestProject")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("UnitTestProject")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+
+[assembly: Guid("3cb7c7fa-b2c0-461c-9169-f22e88aeb16e")]
+
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 51 - 0
UnitTestProject/UnitTest1.cs

@@ -0,0 +1,51 @@
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using kfc;
+
+namespace UnitTestProject
+{
+    [TestClass]
+    public class UnitTest1
+    {
+        [TestMethod]
+        public void SumTest()
+        {
+            var page = new kfc.Windows.Window2();
+
+            int sum, price, exp, res;
+
+            //1
+            sum = 120;
+            price = 150;
+            exp = 270;
+            res = page.GetNewSum(sum, price);
+
+            Assert.AreEqual(exp, res);
+
+            //2
+            sum = 80;
+            price = 100;
+            exp = 180;
+            res = page.GetNewSum(sum, price);
+
+            Assert.AreEqual(exp, res);
+
+            //3
+            sum = 180;
+            price = 60;
+            exp = 240;
+            res = page.GetNewSum(sum, price);
+
+            Assert.AreEqual(exp, res);
+        }
+
+        [TestMethod]
+        public void Fondan()
+        {
+            var page = new kfc.Windows.Window2();
+
+            page.AddNewProduct("Фондан\t\t\t\t99 p.");
+            StringAssert.Contains(page.bracket, "Фондан\t\t\t\t99 p."); ;
+        }
+    }
+}

+ 77 - 0
UnitTestProject/UnitTestProject.csproj

@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" />
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>UnitTestProject</RootNamespace>
+    <AssemblyName>UnitTestProject</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+    <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
+    <IsCodedUITest>False</IsCodedUITest>
+    <TestProjectType>UnitTest</TestProjectType>
+    <NuGetPackageImportStamp>
+    </NuGetPackageImportStamp>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <HintPath>..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
+    </Reference>
+    <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <HintPath>..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
+    </Reference>
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="WindowsBase" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="UnitTest1.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="packages.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\kfc\kfc.csproj">
+      <Project>{55f9b79c-0661-4c1c-bc41-07d0a6dd6df8}</Project>
+      <Name>kfc</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+    <PropertyGroup>
+      <ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их.  Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
+    </PropertyGroup>
+    <Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.props'))" />
+    <Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets'))" />
+  </Target>
+  <Import Project="..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.1\build\net45\MSTest.TestAdapter.targets')" />
+</Project>

+ 5 - 0
UnitTestProject/packages.config

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="MSTest.TestAdapter" version="2.1.1" targetFramework="net472" />
+  <package id="MSTest.TestFramework" version="2.1.1" targetFramework="net472" />
+</packages>

+ 31 - 0
kfc.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.30503.244
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "kfc", "kfc\kfc.csproj", "{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestProject", "UnitTestProject\UnitTestProject.csproj", "{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}.Release|Any CPU.Build.0 = Release|Any CPU
+		{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3CB7C7FA-B2C0-461C-9169-F22E88AEB16E}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {B311AD33-0ED1-41D2-ADB2-53C9F4EAA884}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
kfc/App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

+ 86 - 0
kfc/App.xaml

@@ -0,0 +1,86 @@
+<Application x:Class="kfc.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:kfc"
+             StartupUri="MainWindow.xaml">
+    <Application.Resources>
+
+        <Style x:Key="FocusVisual">
+            <Setter Property="Control.Template">
+                <Setter.Value>
+                    <ControlTemplate>
+                        <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
+                    </ControlTemplate>
+                </Setter.Value>
+            </Setter>
+        </Style>
+        <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
+        <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
+        <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
+        <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
+        <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
+        <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
+        <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
+        <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
+        <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
+        <Style x:Key="ButtonKFC" TargetType="{x:Type Button}">
+            <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
+            <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
+            <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
+            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
+            <Setter Property="BorderThickness" Value="1"/>
+            <Setter Property="HorizontalContentAlignment" Value="Center"/>
+            <Setter Property="VerticalContentAlignment" Value="Center"/>
+            <Setter Property="Padding" Value="1"/>
+            <Setter Property="Template">
+                <Setter.Value>
+                    <ControlTemplate TargetType="{x:Type Button}">
+                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
+                            <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+                        </Border>
+                        <ControlTemplate.Triggers>
+                            <Trigger Property="IsDefaulted" Value="true">
+                                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
+                            </Trigger>
+                            <Trigger Property="IsEnabled" Value="false">
+                                <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
+                                <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
+                            </Trigger>
+                        </ControlTemplate.Triggers>
+                    </ControlTemplate>
+                </Setter.Value>
+            </Setter>
+        </Style>
+        <Style x:Key="ButtonKFC2" TargetType="{x:Type Button}">
+            <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
+            <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
+            <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
+            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
+            <Setter Property="BorderThickness" Value="1"/>
+            <Setter Property="HorizontalContentAlignment" Value="Center"/>
+            <Setter Property="VerticalContentAlignment" Value="Center"/>
+            <Setter Property="Padding" Value="1"/>
+            <Setter Property="Template">
+                <Setter.Value>
+                    <ControlTemplate TargetType="{x:Type Button}">
+                        <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
+                            <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
+                        </Border>
+                        <ControlTemplate.Triggers>
+                            <Trigger Property="IsDefaulted" Value="true">
+                                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
+                            </Trigger>
+                            <Trigger Property="IsEnabled" Value="false">
+                                <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
+                                <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
+                            </Trigger>
+                        </ControlTemplate.Triggers>
+                    </ControlTemplate>
+                </Setter.Value>
+            </Setter>
+        </Style>
+
+    </Application.Resources>
+</Application>

+ 17 - 0
kfc/App.xaml.cs

@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace kfc
+{
+    /// <summary>
+    /// Логика взаимодействия для App.xaml
+    /// </summary>
+    public partial class App : Application
+    {
+    }
+}

BIN
kfc/Fonts/Montserrat-MediumItalic.ttf


BIN
kfc/Image/1.jpg


BIN
kfc/Image/2.jpg


BIN
kfc/Image/3.jpg


BIN
kfc/Image/bur1.png


BIN
kfc/Image/des1.png


BIN
kfc/Image/des2.png


BIN
kfc/Image/desert.png


BIN
kfc/Image/fri.png


BIN
kfc/Image/fri1.png


BIN
kfc/Image/fri2.png


BIN
kfc/Image/fri3.png


BIN
kfc/Image/fri4.png


BIN
kfc/Image/in.jpg


BIN
kfc/Image/logo.jpg


BIN
kfc/Image/out.jpg


BIN
kfc/Image/shefburger.png


BIN
kfc/Image/tvi2.jpg


BIN
kfc/Image/tvister.png


+ 18 - 0
kfc/MainWindow.xaml

@@ -0,0 +1,18 @@
+<Window x:Class="kfc.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:kfc"
+        mc:Ignorable="d"
+        Title="MainWindow" Height="778" Width="450" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Image HorizontalAlignment="Left" Height="264" Margin="0,29,0,0" VerticalAlignment="Top" Width="443" Source="Image/1.jpg"/>
+        <Image HorizontalAlignment="Left" Height="250" Margin="0,293,0,0" VerticalAlignment="Top" Width="443" Source="Image/2.jpg"/>
+        <Image HorizontalAlignment="Left" Height="235" Margin="1,543,0,0" VerticalAlignment="Top" Width="442" Source="Image/3.jpg"/>
+        <Image HorizontalAlignment="Left" Height="122" VerticalAlignment="Top" Width="122" Source="Image/logo.jpg" Margin="0,29,0,0"/>
+        <Button Content="Сделать заказ" HorizontalAlignment="Left" Margin="0,461,0,0" VerticalAlignment="Top" Width="450" Height="82" Background="#99FFFFFF" BorderBrush="#99FFFFFF" FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="36" Foreground="#FF9A3423" Click="Button_Click"/>
+        <Border x:Name="bord" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="778" VerticalAlignment="Top" Width="450" Background="#7F000000" Visibility="Hidden"/>
+
+    </Grid>
+</Window>

+ 39 - 0
kfc/MainWindow.xaml.cs

@@ -0,0 +1,39 @@
+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.Navigation;
+using System.Windows.Shapes;
+
+namespace kfc
+{
+    /// <summary>
+    /// Логика взаимодействия для MainWindow.xaml
+    /// </summary>
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            bord.Visibility = Visibility.Visible; // Сделали видимым Border для эффекта lightbox
+            Windows.Window1 f = new Windows.Window1(); // создали экземпляр объекта второго окна, где “windows” название папки с окном и “Windows1” название второго окна
+            f.ShowDialog(); // отображаем второе окна, делая первое неактивным
+            this.Hide(); // после окончании работы со вторым окном, скрываем главное
+            Windows.Window2 c = new Windows.Window2(); // открываем окно с меню
+            c.Show(); // отображение окна с меню
+
+        }
+    }
+}

+ 55 - 0
kfc/Properties/AssemblyInfo.cs

@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набор атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
+// связанные со сборкой.
+[assembly: AssemblyTitle("kfc")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("kfc")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// из модели COM, установите атрибут ComVisible для этого типа в значение true.
+[assembly: ComVisible(false)]
+
+//Чтобы начать создание локализуемых приложений, задайте
+//<UICulture>CultureYouAreCodingWith</UICulture> в файле .csproj
+//в <PropertyGroup>. Например, при использовании английского (США)
+//в своих исходных файлах установите <UICulture> в en-US.  Затем отмените преобразование в комментарий
+//атрибута NeutralResourceLanguage ниже.  Обновите "en-US" в
+//строка внизу для обеспечения соответствия настройки UICulture в файле проекта.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+    ResourceDictionaryLocation.None, //где расположены словари ресурсов по конкретным тематикам
+                                     //(используется, если ресурс не найден на странице,
+                                     // или в словарях ресурсов приложения)
+    ResourceDictionaryLocation.SourceAssembly //где расположен словарь универсальных ресурсов
+                                              //(используется, если ресурс не найден на странице,
+                                              // в приложении или в каких-либо словарях ресурсов для конкретной темы)
+)]
+
+
+// Сведения о версии для сборки включают четыре следующих значения:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Номер редакции
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 71 - 0
kfc/Properties/Resources.Designer.cs

@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код был создан программным средством.
+//     Версия среды выполнения: 4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace kfc.Properties
+{
+
+
+    /// <summary>
+    ///   Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+    /// </summary>
+    // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
+    // класс с помощью таких средств, как ResGen или Visual Studio.
+    // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
+    // с параметром /str или заново постройте свой VS-проект.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("kfc.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Переопределяет свойство CurrentUICulture текущего потока для всех
+        ///   подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

+ 117 - 0
kfc/Properties/Resources.resx

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 30 - 0
kfc/Properties/Settings.Designer.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace kfc.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

+ 7 - 0
kfc/Properties/Settings.settings

@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

+ 32 - 0
kfc/Windows/.xaml.cs

@@ -0,0 +1,32 @@
+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>
+    /// Логика взаимодействия для Window1.xaml
+    /// </summary>
+    public partial class Window1 : Window
+    {
+        public Window1()
+        {
+            InitializeComponent();
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            this.Close();
+        }
+    }
+}

+ 113 - 0
kfc/Windows/Menu.xaml

@@ -0,0 +1,113 @@
+<Window x:Class="kfc.Windows.Window2"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:kfc.Windows"
+        mc:Ignorable="d"
+        Title="Window2" Height="778" Width="450" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <TextBox x:Name="tbfin" HorizontalAlignment="Left" Height="520" Margin="0,186,0,0" TextWrapping="Wrap" Text="Ваш заказ:" VerticalAlignment="Top" Width="450" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+        <TabControl x:Name="menu" HorizontalAlignment="Left" Height="778" VerticalAlignment="Top" Width="450">
+            <TabItem Height="111" Width="111" Margin="0,194,0,-194">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Label FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="14">Бургеры</Label>
+                        <Image Source="/Image/shefburger.png" />
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid Background="#FFE5E5E5" Margin="0,80,0,0">
+                    <Button Click="Button_Click_1" HorizontalAlignment="Left" Margin="145,57,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/bur1.png" />
+                    </Button>
+                    <Button Click="Button_Click_2" HorizontalAlignment="Left" Margin="297,57,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/shefburger.png" Width="111" />
+                    </Button>
+                    <Label Content="Шефбургер" HorizontalAlignment="Left" Margin="160,32,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Шефбургер Делюкс" HorizontalAlignment="Left" Margin="282,32,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="120р" HorizontalAlignment="Left" Margin="181,173,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="150р" HorizontalAlignment="Left" Margin="335,173,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                </Grid>
+            </TabItem>
+            <TabItem  Height="111" Width="111" Margin="-111,306,111,-306">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Label FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="14">Десерты</Label>
+                        <Image Source="/Image/desert.png" />
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid Background="#FFE5E5E5" Margin="0,80,0,0">
+                    <Button Click="Button_Click_3" HorizontalAlignment="Left" Margin="216,41,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/des1.png" />
+                    </Button>
+                    <Button Click="Button_Click_4" HorizontalAlignment="Left" Margin="216,212,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/des2.png" Width="100" Height="100" />
+                    </Button>
+                    <Button Click="Button_Click_5" HorizontalAlignment="Left" Margin="216,378,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/desert.png" Height="98" Width="102" />
+                    </Button>
+                    <Label Content="Чизкейк" HorizontalAlignment="Left" Margin="240,16,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Фондан" HorizontalAlignment="Left" Margin="240,187,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Пирожок" HorizontalAlignment="Left" Margin="240,353,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="110р" HorizontalAlignment="Left" Margin="255,157,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="99р" HorizontalAlignment="Left" Margin="256,323,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="49р" HorizontalAlignment="Left" Margin="256,489,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                </Grid>
+            </TabItem>
+            <TabItem Height="111" Width="111" Margin="-222,419,222,-419">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Label FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="14">Твистеры</Label>
+                        <Image Source="/Image/tvister.png" Height="88" Width="92" />
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid Background="#FFE5E5E5" Margin="0,80,0,0">
+                    <Button Click="Button_Click_6" HorizontalAlignment="Left" Margin="154,59,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/tvi2.jpg" Height="111" Width="111" />
+                    </Button>
+                    <Button Click="Button_Click_7" HorizontalAlignment="Left" Margin="298,59,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/tvister.png" Height="101" Width="102" />
+                    </Button>
+                    <Label Content="Боксмастер" HorizontalAlignment="Left" Margin="166,34,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Твистер" HorizontalAlignment="Left" Margin="324,34,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="219р" HorizontalAlignment="Left" Margin="192,175,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="70р" HorizontalAlignment="Left" Margin="338,175,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                </Grid>
+            </TabItem>
+            <TabItem Height="111" Width="111" Margin="-333,530,333,-530">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Label FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="14">Картофель</Label>
+                        <Image Source="/Image/fri.png" Height="82" Width="90" />
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid Background="#FFE5E5E5" Margin="0,80,0,0">
+                    <Button Click="Button_Click_8" HorizontalAlignment="Left" Margin="144,35,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/fri4.png" Height="103" Width="103" />
+                    </Button>
+                    <Button Click="Button_Click_9" HorizontalAlignment="Left" Margin="296,35,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/fri1.png" Height="94" Width="99" />
+                    </Button>
+                    <Button Click="Button_Click_10" HorizontalAlignment="Left" Margin="144,201,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/fri3.png" Height="107" Width="90" />
+                    </Button>
+                    <Button Click="Button_Click_11" HorizontalAlignment="Left" Margin="296,201,0,0" VerticalAlignment="Top" Width="111" Height="111">
+                        <Image Source="/Image/fri2.png" Height="98" Width="98" />
+                    </Button>
+                    <Label Content="Маленький к." HorizontalAlignment="Left" Margin="151,10,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Средний к." HorizontalAlignment="Left" Margin="313,10,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Деревенский к." HorizontalAlignment="Left" Margin="145,176,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="Большой к." HorizontalAlignment="Left" Margin="313,176,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="40р" HorizontalAlignment="Left" Margin="182,146,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="60р" HorizontalAlignment="Left" Margin="336,146,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="80р" HorizontalAlignment="Left" Margin="182,312,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                    <Label Content="100р" HorizontalAlignment="Left" Margin="336,312,0,0" VerticalAlignment="Top" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+                </Grid>
+            </TabItem>
+
+        </TabControl>
+        <Image Height="176" Margin="134,10,134,0" VerticalAlignment="Top" Source="/kfc;component/Image/logo.jpg"/>
+        <Button Click="Button_Click" Content="Оплатить" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Margin="332,728,0,0" FontFamily="/kfc;component/Fonts/#Montserrat Medium" Height="26" FontSize="14" Background="#FFCB2D3D" BorderBrush="White" Foreground="White"/>
+        <Label x:Name="itog" Content="Итог: " HorizontalAlignment="Left" Margin="207,728,0,0" VerticalAlignment="Top" Width="120" FontFamily="/kfc;component/Fonts/#Montserrat Medium"/>
+    </Grid>
+</Window>

+ 128 - 0
kfc/Windows/Menu.xaml.cs

@@ -0,0 +1,128 @@
+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>
+    /// Логика взаимодействия для Window2.xaml
+    /// </summary>
+    public partial class Window2 : Window
+    {
+        public int sum = 0;
+        public string bracket = "";
+
+        public Window2()
+        {
+            InitializeComponent();
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            menu.Visibility = Visibility.Hidden;
+        }      
+
+        public void Update()
+        {
+            itog.Content = "Итог: " + sum;
+        }
+
+
+        private void Button_Click_1(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 120);
+            tbfin.AppendText(Environment.NewLine + "Шефбургер\t\t\t120 p.");
+            Update();
+        }
+
+        private void Button_Click_2(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 150);
+            tbfin.AppendText(Environment.NewLine + "Шефбургер Делюкс\t\t150 p.");
+            Update();
+        }
+
+        private void Button_Click_3(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 110);
+            tbfin.AppendText(Environment.NewLine + "Чизкейк\t\t\t\t110 p.");
+            Update();
+        }
+
+        private void Button_Click_4(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 99);
+            tbfin.AppendText(Environment.NewLine + "Фондан\t\t\t\t99 p.");
+            Update();
+        }
+
+        private void Button_Click_5(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 49);
+            tbfin.AppendText(Environment.NewLine + "Пирожок\t\t\t49 p.");
+            Update();
+        }
+
+        private void Button_Click_6(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 219);
+            tbfin.AppendText(Environment.NewLine + "Боксмастер\t\t\t219 p.");
+            Update();
+        }
+
+        private void Button_Click_7(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 70);
+            tbfin.AppendText(Environment.NewLine + "Твистер\t\t\t\t70 p.");
+            Update();
+        }
+
+        private void Button_Click_8(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 40);
+            tbfin.AppendText(Environment.NewLine + "Маленький к.\t\t\t40 p.");
+            Update();
+        }
+
+        private void Button_Click_9(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 60);
+            tbfin.AppendText(Environment.NewLine + "Средний к.\t\t\t60 p.");
+            Update();
+        }
+
+        private void Button_Click_10(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 80);
+            tbfin.AppendText(Environment.NewLine + "Деревенский к.\t\t\t80 p.");
+            Update();
+        }
+
+        private void Button_Click_11(object sender, RoutedEventArgs e)
+        {
+            sum = GetNewSum(sum, 100);
+            tbfin.AppendText(Environment.NewLine + "Большой к.\t\t\t100 p.");
+            Update();
+        }
+
+        public int GetNewSum(int sum, int price)
+        {
+            return (sum + price);
+        }
+
+        public void AddNewProduct(string ProductName)
+        {
+            bracket += Environment.NewLine + ProductName;
+        }
+    }
+}

+ 21 - 0
kfc/Windows/Order.xaml

@@ -0,0 +1,21 @@
+<Window x:Class="kfc.Windows.Window1"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:kfc.Windows"
+        mc:Ignorable="d"
+        Title="Window1" Height="250" Width="400" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Border BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="250" VerticalAlignment="Top" Width="400" Background="#FFC1D9DE"/>
+
+        <Button Click="Button_Click" Margin="66,59,218,75" Style="{DynamicResource ButtonKFC}">
+            <Image Source="/Image/in.jpg" />
+        </Button>
+        <Button Click="Button_Click" Margin="218,59,66,75" Style="{DynamicResource ButtonKFC2}">
+            <Image Source="/Image/out.jpg" />
+        </Button>
+        <Label Content="Здесь" HorizontalAlignment="Left" Margin="90,180,0,0" VerticalAlignment="Top" Height="29" Width="68" FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="18"/>
+        <Label Content="С собой" HorizontalAlignment="Left" Margin="232,180,0,0" VerticalAlignment="Top" Height="29" Width="87" FontFamily="/kfc;component/Fonts/#Montserrat Medium" FontSize="18"/>
+    </Grid>
+</Window>

+ 143 - 0
kfc/kfc.csproj

@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{55F9B79C-0661-4C1C-BC41-07D0A6DD6DF8}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>kfc</RootNamespace>
+    <AssemblyName>kfc</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xaml">
+      <RequiredTargetFramework>4.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="WindowsBase" />
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </ApplicationDefinition>
+    <Compile Include="Windows\.xaml.cs">
+      <DependentUpon>Order.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\Menu.xaml.cs">
+      <DependentUpon>Menu.xaml</DependentUpon>
+    </Compile>
+    <Page Include="MainWindow.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Page Include="Windows\Order.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\Menu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+    <Resource Include="Fonts\Montserrat-MediumItalic.ttf" />
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\1.jpg" />
+    <Resource Include="Image\3.jpg" />
+    <Resource Include="Image\2.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\logo.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\in.jpg" />
+    <Resource Include="Image\out.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\desert.png" />
+    <Resource Include="Image\fri.png" />
+    <Resource Include="Image\shefburger.png" />
+    <Resource Include="Image\tvister.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\bur1.png" />
+    <Resource Include="Image\fri1.png" />
+    <Resource Include="Image\fri2.png" />
+    <Resource Include="Image\fri3.png" />
+    <Resource Include="Image\fri4.png" />
+    <Resource Include="Image\tvi2.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Image\des1.png" />
+    <Resource Include="Image\des2.png" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>