瀏覽代碼

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

joparino 3 年之前
父節點
當前提交
9742ce40c7
共有 50 個文件被更改,包括 1133 次插入0 次删除
  1. 31 0
      KFC.sln
  2. 6 0
      KFC/App.config
  3. 169 0
      KFC/App.xaml
  4. 17 0
      KFC/App.xaml.cs
  5. 160 0
      KFC/KFC.csproj
  6. 20 0
      KFC/MainWindow.xaml
  7. 35 0
      KFC/MainWindow.xaml.cs
  8. 55 0
      KFC/Properties/AssemblyInfo.cs
  9. 70 0
      KFC/Properties/Resources.Designer.cs
  10. 117 0
      KFC/Properties/Resources.resx
  11. 29 0
      KFC/Properties/Settings.Designer.cs
  12. 7 0
      KFC/Properties/Settings.settings
  13. 二進制
      KFC/i (1).jpg
  14. 二進制
      KFC/i.jpg
  15. 二進制
      KFC/image/1528144619.jpg
  16. 二進制
      KFC/image/ai_twister.jpg
  17. 二進制
      KFC/image/burger.jpg
  18. 二進制
      KFC/image/deluxe_twister.jpg
  19. 二進制
      KFC/image/desert.jpg
  20. 二進制
      KFC/image/fries.jpg
  21. 二進制
      KFC/image/i (1).jpg
  22. 二進制
      KFC/image/i (2).jpg
  23. 二進制
      KFC/image/i.jpg
  24. 二進制
      KFC/image/logo.jpeg
  25. 二進制
      KFC/image/pirozhek_vishna.jpg
  26. 二進制
      KFC/image/scale_1200.jpg
  27. 二進制
      KFC/image/shefburger.png
  28. 二進制
      KFC/image/twister.jpg
  29. 二進制
      KFC/image/zinger.jpg
  30. 二進制
      KFC/scale_1200.jpg
  31. 二進制
      KFC/windows/1528144619.jpg
  32. 30 0
      KFC/windows/Window1.xaml
  33. 37 0
      KFC/windows/Window1.xaml.cs
  34. 二進制
      KFC/windows/ai_twister.jpg
  35. 二進制
      KFC/windows/burger.jpg
  36. 二進制
      KFC/windows/deluxe_twister.jpg
  37. 二進制
      KFC/windows/desert.jpg
  38. 二進制
      KFC/windows/fries.jpg
  39. 二進制
      KFC/windows/i (2).jpg
  40. 二進制
      KFC/windows/logo.jpeg
  41. 73 0
      KFC/windows/menu.xaml
  42. 79 0
      KFC/windows/menu.xaml.cs
  43. 二進制
      KFC/windows/pirozhek_vishna.jpg
  44. 二進制
      KFC/windows/shefburger.png
  45. 二進制
      KFC/windows/twister.jpg
  46. 二進制
      KFC/windows/zinger.jpg
  47. 20 0
      TestKFC1/Properties/AssemblyInfo.cs
  48. 77 0
      TestKFC1/TestKFC1.csproj
  49. 96 0
      TestKFC1/UnitTest1.cs
  50. 5 0
      TestKFC1/packages.config

+ 31 - 0
KFC.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31911.196
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KFC", "KFC\KFC.csproj", "{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestKFC1", "TestKFC1\TestKFC1.csproj", "{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {1B9334F1-AF64-428B-9418-9D4727B8D37E}
+	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>

+ 169 - 0
KFC/App.xaml

@@ -0,0 +1,169 @@
+<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>
+        <LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
+            <GradientStop Color="#F0F0F0" Offset="0.0"/>
+            <GradientStop Color="#E5E5E5" Offset="1.0"/>
+        </LinearGradientBrush>
+        <SolidColorBrush x:Key="TabItem.Static.Border" Color="#ACACAC"/>
+        <LinearGradientBrush x:Key="TabItem.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
+            <GradientStop Color="#ECF4FC" Offset="0.0"/>
+            <GradientStop Color="#DCECFC" Offset="1.0"/>
+        </LinearGradientBrush>
+        <SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="#7EB4EA"/>
+        <SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#F0F0F0"/>
+        <SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#D9D9D9"/>
+        <SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/>
+        <SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/>
+        <Style x:Key="TabKFC" TargetType="{x:Type TabItem}">
+            <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
+            <Setter Property="Foreground" Value="Black"/>
+            <Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/>
+            <Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/>
+            <Setter Property="Margin" Value="0"/>
+            <Setter Property="Padding" Value="6,2,6,2"/>
+            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
+            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
+            <Setter Property="Template">
+                <Setter.Value>
+                    <ControlTemplate TargetType="{x:Type TabItem}">
+                        <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
+                            <Border x:Name="mainBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" Background="{TemplateBinding Background}" Margin="0">
+                                <Border x:Name="innerBorder" BorderBrush="{StaticResource TabItem.Selected.Border}" BorderThickness="1,1,1,0"  Margin="-1" Opacity="0"/>
+                            </Border>
+                            <ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
+                        </Grid>
+                        <ControlTemplate.Triggers>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="Background" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Background}"/>
+                                <Setter Property="BorderBrush" TargetName="mainBorder" Value="{StaticResource TabItem.Disabled.Border}"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
+                            </MultiDataTrigger>
+                           
+                        </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
+    {
+    }
+}

+ 160 - 0
KFC/KFC.csproj

@@ -0,0 +1,160 @@
+<?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>{F88E25D0-35A5-4ED9-8A69-6C84954F26AB}</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\menu.xaml.cs">
+      <DependentUpon>menu.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="windows\Window1.xaml.cs">
+      <DependentUpon>Window1.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\menu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="windows\Window1.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>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="i %281%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="image\" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="i.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="scale_1200.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\i %282%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\1528144619.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\burger.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\twister.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\desert.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\fries.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\shefburger.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\zinger.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\ai_twister.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\deluxe_twister.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\pirozhek_vishna.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="windows\logo.jpeg" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 20 - 0
KFC/MainWindow.xaml

@@ -0,0 +1,20 @@
+<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="940" Width="320" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid Margin="0,0,2,2">
+        <Image HorizontalAlignment="Left" Height="310" VerticalAlignment="Top" Width="493" Source="i (1).jpg" Margin="0,0,-183,0"/>
+        <Image HorizontalAlignment="Left" Height="311" Margin="0,315,-130,0" VerticalAlignment="Top" Width="440" Source="i.jpg"/>
+        <Image HorizontalAlignment="Left" Height="312" Margin="0,626,-22,-8" VerticalAlignment="Top" Width="332" Source="scale_1200.jpg"/>
+        <Button x:Name="order" Content="Сделать заказ" HorizontalAlignment="Left" Margin="0,541,-4,0" VerticalAlignment="Top" Width="314" Height="85" Click="order_Click" FontSize="36" Foreground="Black" BorderBrush="Black">
+            <Button.Background>
+                <SolidColorBrush Color="White" Opacity="0.5"/>
+            </Button.Background>
+        </Button>
+        <Border x:Name="bord" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="939" VerticalAlignment="Top" Width="312" Margin="0,-1,-2,-8" Background="#66252424" Visibility="Hidden"/>
+    </Grid>
+</Window>

+ 35 - 0
KFC/MainWindow.xaml.cs

@@ -0,0 +1,35 @@
+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
+{
+    public partial class MainWindow : Window
+    {
+        public MainWindow()
+        {
+            InitializeComponent();
+        }
+
+        private void order_Click(object sender, RoutedEventArgs e)
+        {
+            bord.Visibility = Visibility.Visible;
+            windows.Window1 f = new windows.Window1();
+            f.ShowDialog();
+            this.Hide();
+            windows.menu c = new windows.menu();
+            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")]

+ 70 - 0
KFC/Properties/Resources.Designer.cs

@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <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>

+ 29 - 0
KFC/Properties/Settings.Designer.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <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>

二進制
KFC/i (1).jpg


二進制
KFC/i.jpg


二進制
KFC/image/1528144619.jpg


二進制
KFC/image/ai_twister.jpg


二進制
KFC/image/burger.jpg


二進制
KFC/image/deluxe_twister.jpg


二進制
KFC/image/desert.jpg


二進制
KFC/image/fries.jpg


二進制
KFC/image/i (1).jpg


二進制
KFC/image/i (2).jpg


二進制
KFC/image/i.jpg


二進制
KFC/image/logo.jpeg


二進制
KFC/image/pirozhek_vishna.jpg


二進制
KFC/image/scale_1200.jpg


二進制
KFC/image/shefburger.png


二進制
KFC/image/twister.jpg


二進制
KFC/image/zinger.jpg


二進制
KFC/scale_1200.jpg


二進制
KFC/windows/1528144619.jpg


+ 30 - 0
KFC/windows/Window1.xaml

@@ -0,0 +1,30 @@
+<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" MinWidth="2" Background="#FFAAD8F7" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Button x:Name="here" Content="" HorizontalAlignment="Left" Margin="85,77,0,0" VerticalAlignment="Top" Width="100" Height="100" Foreground="{x:Null}" Style="{DynamicResource ButtonKFC}" Click="here_Click">
+            <Button.BorderBrush>
+                <SolidColorBrush Color="Black" Opacity="0.6"/>
+            </Button.BorderBrush>
+            <Button.Background>
+                <ImageBrush ImageSource="i (2).jpg" Stretch="UniformToFill"/>
+            </Button.Background>
+        </Button>
+        <Button x:Name="withu" Content="" HorizontalAlignment="Left" Margin="240,77,0,0" VerticalAlignment="Top" Width="100" Height="100" Foreground="{x:Null}" Click="withu_Click" Style="{DynamicResource ButtonKFC2}">
+            <Button.BorderBrush>
+                <SolidColorBrush Color="Black" Opacity="0.6"/>
+            </Button.BorderBrush>
+            <Button.Background>
+                <ImageBrush ImageSource="1528144619.jpg" Stretch="UniformToFill"/>
+            </Button.Background>
+        </Button>
+        <Label Content="Здесь" HorizontalAlignment="Left" Margin="112,182,0,0" VerticalAlignment="Top" Width="46" FontSize="14"/>
+        <Label Content="С собой" HorizontalAlignment="Left" Margin="261,182,0,0" VerticalAlignment="Top" Width="62" FontSize="14"/>
+
+    </Grid>
+</Window>

+ 37 - 0
KFC/windows/Window1.xaml.cs

@@ -0,0 +1,37 @@
+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 here_Click(object sender, RoutedEventArgs e)
+        {
+            this.Close();
+        }
+
+        private void withu_Click(object sender, RoutedEventArgs e)
+        {
+            this.Close();
+        }
+    }
+}

二進制
KFC/windows/ai_twister.jpg


二進制
KFC/windows/burger.jpg


二進制
KFC/windows/deluxe_twister.jpg


二進制
KFC/windows/desert.jpg


二進制
KFC/windows/fries.jpg


二進制
KFC/windows/i (2).jpg


二進制
KFC/windows/logo.jpeg


+ 73 - 0
KFC/windows/menu.xaml

@@ -0,0 +1,73 @@
+<Window x:Class="KFC.windows.menu"
+        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="menu" Height="750" Width="524.282" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <TabControl x:Name="TabMenu" TabStripPlacement="Left" HorizontalAlignment="Left" Height="742" VerticalAlignment="Top" Width="516">
+            <TabItem Header="Бургеры" Width="120" Height="120" Style="{DynamicResource TabKFC}" >
+                <TabItem.Background>
+                    <ImageBrush ImageSource="burger.jpg" Stretch="UniformToFill" />
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5">
+                    <Button x:Name="shefburher" HorizontalAlignment="Left" Margin="50,40,0,0" VerticalAlignment="Top" Width="120" Height="120" Style="{DynamicResource ButtonKFC}" Foreground="{x:Null}" BorderBrush="#FF707070" Click="zhefburger_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="shefburger.png"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="zinger" HorizontalAlignment="Left" Margin="220,40,0,0" VerticalAlignment="Top" Width="120" Height="120" Style="{DynamicResource ButtonKFC}" Click="zinger_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="zinger.jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Label Content="Шефбургер 170 р." HorizontalAlignment="Center" Margin="60,165,218,0" VerticalAlignment="Top" Width="107"/>
+                    <Label Content="Зингер 130 р." HorizontalAlignment="Center" Margin="242,165,65,0" VerticalAlignment="Top" Width="81"/>
+                </Grid>
+            </TabItem>
+            <TabItem Header="Твистеры" Width="120" Height="120" Style="{DynamicResource TabKFC}">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="twister.jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5">
+                    <Button x:Name="ai_twister" HorizontalAlignment="Left" Margin="50,40,0,0" VerticalAlignment="Top" Width="120" Height="120" Style="{DynamicResource ButtonKFC}" Foreground="{x:Null}" BorderBrush="#FF707070" Click="ai_twister_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="ai_twister.jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Label Content="Ай-твистер 55 р." HorizontalAlignment="Center" Margin="61.5,165,219.5,0" VerticalAlignment="Top" Width="107"/>
+                    <Button x:Name="deluxe_twister" HorizontalAlignment="Left" Margin="220,45,0,0" VerticalAlignment="Top" Width="120" Height="120" Style="{DynamicResource ButtonKFC}" Foreground="{x:Null}" BorderBrush="#FF707070" Click="deluxe_twister_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="deluxe_twister.jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Label Content="Твистер Де люкс&#xD;&#xA;         189 р." HorizontalAlignment="Center" Margin="227,165,54,0" VerticalAlignment="Top" Width="107"/>
+                </Grid>
+            </TabItem>
+            <TabItem Header="Десерты" Width="120" Height="120" Style="{DynamicResource TabKFC}">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="desert.jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5">
+                    <Button x:Name="pirog" HorizontalAlignment="Left" Margin="50,40,0,0" VerticalAlignment="Top" Width="120" Height="120" Style="{DynamicResource ButtonKFC}" Foreground="{x:Null}" BorderBrush="#FF707070" Click="pirog_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="pirozhek_vishna.jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Label Content="Пирожок с вишней&#xD;&#xA;             55 р." HorizontalAlignment="Center" Margin="50,165,218,0" VerticalAlignment="Top" Width="120"/>
+                </Grid>
+            </TabItem>
+            <TabItem Header="Картофель" Width="120" Height="120" Style="{DynamicResource TabKFC}">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="fries.jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5"/>
+            </TabItem>
+        </TabControl>
+        <TextBox x:Name="tbfin" Margin="102,110,73,120" Visibility="Hidden" Text="Ваш заказ:" IsReadOnly="True"/>
+        <Button  Content="Оплатить" Margin="431,713,5,5" Click="Button_Click_1"/>
+        <TextBlock x:Name="result" Margin="322,713,90,2" Visibility="Hidden"><Run Text="Итого"/><Run Text=":"/><Run Text=" "/></TextBlock>
+    </Grid>
+</Window>

+ 79 - 0
KFC/windows/menu.xaml.cs

@@ -0,0 +1,79 @@
+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
+{
+    public partial class menu : Window
+    {
+        public int sum = 0;
+        public string name = "";
+        public menu()
+        {
+            InitializeComponent();
+        }
+        public int NewSum(int sum, int price)
+        {
+            return (sum + price);
+        }
+
+        public void NewProd(string prodName)
+        {
+            name = Environment.NewLine + prodName;
+        }
+
+        private void Button_Click_1(object sender, RoutedEventArgs e)
+        {
+            TabMenu.Visibility = Visibility.Hidden;
+            tbfin.Visibility = Visibility.Visible;
+            result.Visibility = Visibility.Visible;
+
+            result.Text = "Итого: " + Convert.ToString(sum);
+        }
+
+        private void zhefburger_Click(object sender, RoutedEventArgs e)
+        {
+            sum = NewSum(sum, 170);
+            NewProd("\nШефбургер\t\t\t170 р.");
+            tbfin.Text += name;
+        }
+
+        private void zinger_Click(object sender, RoutedEventArgs e)
+        {
+            sum = NewSum(sum, 130);
+            NewProd("\nЗингер\t\t\t\t130 р.");
+            tbfin.Text += name;
+        }
+
+        private void ai_twister_Click(object sender, RoutedEventArgs e)
+        {
+            sum = NewSum(sum, 55);
+            NewProd("\nАй-твистер\t\t\t55 р.");
+            tbfin.Text += name;
+        }
+
+        private void deluxe_twister_Click(object sender, RoutedEventArgs e)
+        {
+            sum = NewSum(sum, 189);
+            NewProd("\nТвистер Де Люкс\t\t\t189 р.");
+            tbfin.Text += name;
+        }
+
+        private void pirog_Click(object sender, RoutedEventArgs e)
+        {
+            sum = NewSum(sum, 55);
+            NewProd("\nПирожек с вишней\t\t55 р.");
+            tbfin.Text += name;
+        }
+    }
+}

二進制
KFC/windows/pirozhek_vishna.jpg


二進制
KFC/windows/shefburger.png


二進制
KFC/windows/twister.jpg


二進制
KFC/windows/zinger.jpg


+ 20 - 0
TestKFC1/Properties/AssemblyInfo.cs

@@ -0,0 +1,20 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("TestKFC1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("TestKFC1")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+
+[assembly: Guid("ad616c4a-82c1-43d9-a6af-d76af04ef36a")]
+
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 77 - 0
TestKFC1/TestKFC1.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.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.2\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>{AD616C4A-82C1-43D9-A6AF-D76AF04EF36A}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>TestKFC1</RootNamespace>
+    <AssemblyName>TestKFC1</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.2\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.2\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>{f88e25d0-35a5-4ed9-8a69-6c84954f26ab}</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.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props'))" />
+    <Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets'))" />
+  </Target>
+  <Import Project="..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" />
+</Project>

+ 96 - 0
TestKFC1/UnitTest1.cs

@@ -0,0 +1,96 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using KFC.windows;
+
+namespace TestKFC1
+{
+    [TestClass]
+    public class TestSum
+    {
+        menu page = new menu();
+
+        [TestMethod]
+        public void Sum()
+        {
+            int sum;
+            int price;
+            int result;
+            int expected;
+
+            sum = 0;                               // 1
+            price = 55;
+
+            expected = 55;
+            result = page.NewSum(sum, price);
+
+            Assert.AreEqual(expected, result);
+
+            sum = 130;                             // 2
+            price = 170;
+
+            expected = 300;
+            result = page.NewSum(sum, price);
+
+            Assert.AreEqual(expected, result);
+
+            
+            sum = 355;                             // 3
+            price = 189;
+
+            expected = 544;
+            result = page.NewSum(sum, price);
+
+            Assert.AreEqual(expected, result);
+
+
+            sum = 544;                             // 4
+            price = 55;
+
+            expected = 599;
+            result = page.NewSum(sum, price);
+
+            Assert.AreEqual(expected, result);
+        }
+    }
+
+    [TestClass]
+    public class TestTitle
+    {
+        menu page = new menu();
+
+        [TestMethod]
+        public void Shefburger()
+        {
+            page.NewProd("\nШефбургер\t\t\t170 р.");
+            StringAssert.Contains(page.name, "\nШефбургер\t\t\t170 р.");
+        }
+
+        [TestMethod]
+        public void Zinger()
+        {
+            page.NewProd("\nЗингер\t\t\t\t130 р.");
+            StringAssert.Contains(page.name, "\nЗингер\t\t\t\t130 р.");
+        }
+
+        [TestMethod]
+        public void Ai_twister()
+        {
+            page.NewProd("\nАй-твистер\t\t\t55 р.");
+            StringAssert.Contains(page.name, "\nАй-твистер\t\t\t55 р.");
+        }
+
+        [TestMethod]
+        public void Deluxe_twister()
+        {
+            page.NewProd("\nТвистер Де Люкс\t\t\t189 р.");
+            StringAssert.Contains(page.name, "\nТвистер Де Люкс\t\t\t189 р.");
+        }
+
+        [TestMethod]
+        public void Pirog()
+        {
+            page.NewProd("\nПирожек с вишней\t\t55 р.");
+            StringAssert.Contains(page.name, "\nПирожек с вишней\t\t55 р.");
+        }
+    }
+}

+ 5 - 0
TestKFC1/packages.config

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