муха кирилл 3 年 前
コミット
1e777dbfd5

+ 63 - 0
KFC/.gitattributes

@@ -0,0 +1,63 @@
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs     diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following 
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln       merge=binary
+#*.csproj    merge=binary
+#*.vbproj    merge=binary
+#*.vcxproj   merge=binary
+#*.vcproj    merge=binary
+#*.dbproj    merge=binary
+#*.fsproj    merge=binary
+#*.lsproj    merge=binary
+#*.wixproj   merge=binary
+#*.modelproj merge=binary
+#*.sqlproj   merge=binary
+#*.wwaproj   merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg   binary
+#*.png   binary
+#*.gif   binary
+
+###############################################################################
+# diff behavior for common document formats
+# 
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the 
+# entries below.
+###############################################################################
+#*.doc   diff=astextplain
+#*.DOC   diff=astextplain
+#*.docx  diff=astextplain
+#*.DOCX  diff=astextplain
+#*.dot   diff=astextplain
+#*.DOT   diff=astextplain
+#*.pdf   diff=astextplain
+#*.PDF   diff=astextplain
+#*.rtf   diff=astextplain
+#*.RTF   diff=astextplain

+ 363 - 0
KFC/.gitignore

@@ -0,0 +1,363 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Oo]ut/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd

BIN
KFC/1KFC.jpeg


BIN
KFC/1k.png


BIN
KFC/2KFC.jpg


BIN
KFC/2t.jpg


BIN
KFC/3KFC.jpg


BIN
KFC/4KFC.jpg


+ 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.8" />
+    </startup>
+</configuration>

+ 9 - 0
KFC/App.xaml

@@ -0,0 +1,9 @@
+<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>
+         
+    </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
+    {
+    }
+}

+ 178 - 0
KFC/KFC.csproj

@@ -0,0 +1,178 @@
+<?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>{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>KFC</RootNamespace>
+    <AssemblyName>KFC</AssemblyName>
+    <TargetFrameworkVersion>v4.8</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>
+    <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="Menu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Order.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Menu.xaml.cs">
+      <DependentUpon>Menu.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Order.xaml.cs">
+      <DependentUpon>Order.xaml</DependentUpon>
+    </Compile>
+    <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="1KFC.jpeg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="2KFC.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="3KFC.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="4KFC.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="burg.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="burgshef.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="shef.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="jun.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="cheez.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="chicken.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="2t.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="t.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="tj.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="td.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="1k.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="bf.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Pd.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="d1.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="psv.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="dkkfc.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="sdes.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="ssoboy.png" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 31 - 0
KFC/KFC.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31729.503
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KFC", "KFC.csproj", "{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "..\Tests\Tests.csproj", "{B51BD632-61AF-4DDA-B95B-365321BE4921}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{63CCF6D6-3DB5-4CA0-B2DE-5FA7C11DE23B}.Release|Any CPU.Build.0 = Release|Any CPU
+		{B51BD632-61AF-4DDA-B95B-365321BE4921}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{B51BD632-61AF-4DDA-B95B-365321BE4921}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{B51BD632-61AF-4DDA-B95B-365321BE4921}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{B51BD632-61AF-4DDA-B95B-365321BE4921}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {C3FEDF95-502C-4C8F-B4F0-8AE6A137FA27}
+	EndGlobalSection
+EndGlobal

+ 19 - 0
KFC/MainWindow.xaml

@@ -0,0 +1,19 @@
+<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="750" Width="500" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Image Source="4KFC.jpg" Stretch="Fill" Margin="0,218,0,198.4" />
+        <Image Source="3KFC.jpg" Stretch="Fill" Margin="0,0,0,478.4" />
+        <Image Source="2KFC.jpg" Stretch="Fill" Margin="0,514,0,0.4"/>
+        <Image Source="1KFC.jpeg" Margin="4,4,368,627.4"/>
+        <Button x:Name="btn_order" Content="Сделать заказ" FontSize="34" FontFamily="Century Gothic" Background="Yellow" Opacity="0.4" Margin="2,384,2,289.4" Click="Button_Order"/>
+
+        <Border x:Name="border" Background="#7F000000" Visibility="Hidden"/>
+
+    </Grid>
+</Window>

+ 38 - 0
KFC/MainWindow.xaml.cs

@@ -0,0 +1,38 @@
+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_Order(object sender, RoutedEventArgs e)
+        {
+            border.Visibility = Visibility.Visible;
+            Order order = new Order();
+            order.ShowDialog();
+            Menu menu = new Menu();
+            menu.Show();
+            this.Hide();
+        }
+    }
+}

+ 126 - 0
KFC/Menu.xaml

@@ -0,0 +1,126 @@
+<Window x:Class="KFC.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"
+        mc:Ignorable="d"
+       Title="Menu" Height="750" Width="500" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Image Source="1KFC.jpeg" Stretch="Fill" Margin="0,0,0,630"/>
+        <TextBox x:Name="txt" FontSize="16" Visibility="Hidden" IsReadOnly="True" Margin="0,100,0,0"/>
+        <TabControl x:Name="tabcontrol" TabStripPlacement="Left" Margin="0,100,0,76">
+            <TabItem FontSize="22" FontFamily="Century Gothic" Height="144">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Image Source="burg.jpg" Height="111" Width="132"/>
+                        <TextBlock Text="Бургеры" HorizontalAlignment="Center"/>
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid>
+                    <StackPanel Margin="0,0,175,0">
+                        <Grid Name="burger1" MouseDown="Burger1">
+                            <Image Source="burgshef.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" Margin="0,110,0,0">Шефбургер Де Люкс<LineBreak/>149 Р</TextBlock>
+                        </Grid>
+                        <Grid MouseDown="Burger2">
+                            <Image Source="jun.png" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" Margin="0,110,0,0">Шефбургер Джуниор<LineBreak/>99 Р</TextBlock>
+                        </Grid>
+                        <Grid MouseDown="Burger3">
+                            <Image Source="chicken.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Чикенбургер<LineBreak/>59 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                    <StackPanel Margin="175,0,0,0">
+                        <Grid MouseDown="Burger4">
+                            <Image Source="shef.png" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Шефбургер<LineBreak/>139 Р</TextBlock>
+                        </Grid>
+                        <Grid MouseDown="Burger5">
+                            <Image Source="cheez.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Чизбургер Де Люкс<LineBreak/>129 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                </Grid>
+            </TabItem>
+
+            <TabItem FontSize="22" FontFamily="Century Gothic" Height="144" Width="144">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Image Source="t.jpg" Height="111" Width="138"/>
+                        <TextBlock Text="Твистеры" HorizontalAlignment="Center"/>
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid>
+                    <StackPanel Margin="0,0,175,0">
+                        <Grid MouseDown="Tvister1">
+                            <Image Source="2t.jpg" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">2 твистера<LineBreak/>269 Р</TextBlock>
+                        </Grid>
+
+                        <Grid MouseDown="Tvister2">
+                            <Image Source="td.jpg" Height="144" />
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Твистер Де Люкс<LineBreak/>189 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                    <StackPanel Margin="175,0,0,0">
+                        <Grid MouseDown="Tvister3">
+                            <Image Source="tj.jpg" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Твистер Джуниор<LineBreak/>99 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                </Grid>
+            </TabItem>
+
+            <TabItem FontSize="22" FontFamily="Century Gothic" Height="144" Width="144">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Image Source="1k.png" Height="111"/>
+                        <TextBlock Text="Картофель" HorizontalAlignment="Center"/>
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid>
+                    <StackPanel Margin="0,0,175,0">
+                        <Grid MouseDown="Potato1">
+                            <Image Source="bf.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" Margin="0,130,0,0">Баскет фри<LineBreak/>99 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                    <StackPanel Margin="175,0,0,0">
+                        <Grid MouseDown="Potato2">
+                            <Image Source="pd.png" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" Margin="0,130,0,0">Картофель по-деревенски<LineBreak/>79 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                </Grid>
+            </TabItem>
+
+            <TabItem FontSize="22" FontFamily="Century Gothic" Height="144" Width="144">
+                <TabItem.Header>
+                    <StackPanel>
+                        <Image Source="d1.jpg" Height="111"/>
+                        <TextBlock Text="Десерты" HorizontalAlignment="Center"/>
+                    </StackPanel>
+                </TabItem.Header>
+                <Grid>
+                    <StackPanel Margin="0,0,175,0">
+                        <Grid MouseDown="Dessert1">
+                            <Image Source="psv.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Пирожок с вишней<LineBreak/>55 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                    <StackPanel Margin="175,0,0,0">
+                        <Grid MouseDown="Dessert2">
+                            <Image Source="dkkfc.jpg" VerticalAlignment="Top" Height="144"/>
+                            <TextBlock TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" TextWrapping="Wrap" VerticalAlignment="Bottom">Донат Карамельный<LineBreak/>79 Р</TextBlock>
+                        </Grid>
+                    </StackPanel>
+                </Grid>
+            </TabItem>
+        </TabControl>
+        <TextBox x:Name="txtsumm" BorderThickness="0" FontSize="18" FontFamily="Century Gothic" IsReadOnly="True" Margin="150,700,170,0"/>
+        <Button x:Name="btn_pay" Content="Оплатить" FontFamily="Century Gothic" FontSize="18" Background="Yellow" Opacity="0.4" Margin="350,700,0,0" Click="Button_Pay"/>
+        <Button x:Name="btn_exit" Content="Закрыть" FontFamily="Century Gothic" FontSize="18" Background="Red" Opacity="0.8" Visibility="Hidden" Margin="350,700,0,0" Click="Button_Exit"/>
+    </Grid>
+</Window>

+ 169 - 0
KFC/Menu.xaml.cs

@@ -0,0 +1,169 @@
+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
+{
+    /// <summary>
+    /// Логика взаимодействия для Menu.xaml
+    /// </summary>
+    public partial class Menu : Window
+    {
+        public long summ = 0;
+        public Menu()
+        {
+            InitializeComponent();
+        }
+        public void Update()
+        {
+
+        }
+        private void Button_Pay(object sender, RoutedEventArgs e)
+        {
+            tabcontrol.Visibility = Visibility.Hidden;
+            txt.Visibility = Visibility.Visible;
+            txtsumm.Text = $"Итого: {summ}";
+            btn_pay.Visibility = Visibility.Hidden;
+            btn_exit.Visibility = Visibility.Visible;
+        }
+        #region Burger
+        public void Burger1(object sender, MouseButtonEventArgs e)
+        {
+            summ += 149;
+            txt.AppendText(Environment.NewLine + $"{"Шефбургер Де Люкс".PadRight(85, ' ')}149 p.");
+            Update();
+        }
+
+        private void Burger2(object sender, MouseButtonEventArgs e)
+        {
+            summ += 99;
+            txt.AppendText(Environment.NewLine + $"{"Шефбургер Джуниор".PadRight(86, ' ')}99 p.");
+            Update();
+        }
+
+        private void Burger3(object sender, MouseButtonEventArgs e)
+        {
+            summ += 69;
+            txt.AppendText(Environment.NewLine + $"{"Чизбургер с Луком".PadRight(90, ' ')}69 p.");
+            Update();
+        }
+
+        private void Burger4(object sender, MouseButtonEventArgs e)
+        {
+            summ += 99;
+            txt.AppendText(Environment.NewLine + $"{ "Шефбургер".PadRight(94, ' ')}99 p.");
+            Update();
+        }
+
+        private void Burger5(object sender, MouseButtonEventArgs e)
+        {
+            summ += 129;
+            txt.AppendText(Environment.NewLine + $"{"Чизбургер Де Люкс".PadRight(87, ' ')}129 p.");
+            Update();
+        }
+        #endregion
+
+        #region Tvister
+        private void Tvister1(object sender, MouseButtonEventArgs e)
+        {
+            summ += 269;
+            txt.AppendText(Environment.NewLine + $"{ "2 твистера".PadRight(95, ' ')}269 p.");
+            Update();
+        }
+
+        private void Tvister2(object sender, MouseButtonEventArgs e)
+        {
+            summ += 189;
+            txt.AppendText(Environment.NewLine + $"{"Твистер Де Люкс".PadRight(89, ' ')}189 p.");
+            Update();
+        }
+
+        private void Tvister3(object sender, MouseButtonEventArgs e)
+        {
+            summ += 99;
+            txt.AppendText(Environment.NewLine + $"{"Твистер Джуниор".PadRight(90, ' ')}99 p.");
+            Update();
+        }
+        #endregion
+
+        #region Potato
+        private void Potato1(object sender, MouseButtonEventArgs e)
+        {
+            summ += 99;
+            txt.AppendText(Environment.NewLine + $"{"Баскет фри".PadRight(96, ' ')}99 p.");
+            Update();
+        }
+
+        private void Potato2(object sender, MouseButtonEventArgs e)
+        {
+            summ += 79;
+            txt.AppendText(Environment.NewLine + $"{"Картофель по-деревенски".PadRight(83, ' ')}79 p.");
+            Update();
+        }
+
+        #endregion
+
+        #region Dessert
+        private void Dessert1(object sender, MouseButtonEventArgs e)
+        {
+            summ += 55;
+            txt.AppendText(Environment.NewLine + $"{"Пирожок с вишней".PadRight(88, ' ')}55 p.");
+            Update();
+        }
+
+        private void Dessert2(object sender, MouseButtonEventArgs e)
+        {
+            summ += 79;
+            txt.AppendText(Environment.NewLine + $"{"Донат Карамельный".PadRight(88, ' ')}79 p.");
+            Update();
+        }
+        #endregion
+
+        private void Button_Exit(object sender, RoutedEventArgs e)
+        {
+            Application.Current.Shutdown();
+        }
+
+        #region for tests
+        public long Summ()
+        {
+            Burger1(null, null);
+            Tvister1(null, null);
+            Potato1(null, null);
+            Dessert1(null, null);
+            return summ;
+        }
+
+        public string Check()
+        {
+            Tvister1(null, null);
+            Button_Pay(null, null);
+            return txtsumm.Text;
+        }
+
+        public string CheckPuy()
+        {
+            Burger1(null, null);
+            Button_Pay(null, null);
+            return txt.Text;
+        }
+
+        public long CheckSumm2()
+        {
+            Burger1(null, null);
+            Burger1(null, null);
+            return summ;
+        }
+        #endregion
+    }
+}

+ 16 - 0
KFC/Order.xaml

@@ -0,0 +1,16 @@
+<Window x:Class="KFC.Order"
+        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="Order" Height="250" Width="400" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="NoResize">
+    <Grid Background="Aqua">
+        <Image Source="sdes.png" Margin="40,50,210,90" MouseDown="Image_MouseDown_Here"/>
+        <TextBlock Text="Здесь" TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" Margin="30,170,220,50"/>
+        <Image Source="ssoboy.png" Margin="240,40,40,80" MouseDown="Image_MouseDown_Ssoboy"/>
+        <TextBlock Text="С собой" TextAlignment="Center" FontFamily="Century Gothic" FontSize="16" Margin="220,170,30,50"/>
+
+    </Grid>
+</Window>

+ 35 - 0
KFC/Order.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.Shapes;
+
+namespace KFC
+{
+    /// <summary>
+    /// Логика взаимодействия для Order.xaml
+    /// </summary>
+    public partial class Order : Window
+    {
+        public Order()
+        {
+            InitializeComponent();
+        }
+        private void Image_MouseDown_Here(object sender, MouseButtonEventArgs e)
+        {
+            this.Close();
+        }
+        private void Image_MouseDown_Ssoboy(object sender, MouseButtonEventArgs e)
+        {
+            this.Close();
+        }
+    }
+}

BIN
KFC/Pd.png


+ 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>

+ 20 - 0
KFC/Tests/Properties/AssemblyInfo.cs

@@ -0,0 +1,20 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Tests")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+
+[assembly: Guid("b51bd632-61af-4dda-b95b-365321be4921")]
+
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 77 - 0
KFC/Tests/Tests.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="..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\KFC\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>{B51BD632-61AF-4DDA-B95B-365321BE4921}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>Tests</RootNamespace>
+    <AssemblyName>Tests</AssemblyName>
+    <TargetFrameworkVersion>v4.8</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>..\KFC\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>..\KFC\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>{63ccf6d6-3db5-4ca0-b2de-5fa7c11de23b}</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('..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props'))" />
+    <Error Condition="!Exists('..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets'))" />
+  </Target>
+  <Import Project="..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\KFC\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" />
+</Project>

+ 43 - 0
KFC/Tests/UnitTest1.cs

@@ -0,0 +1,43 @@
+using KFC;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+
+namespace Tests
+{
+    [TestClass]
+    public class UnitTest1
+    {
+        public long ResultSumm;
+        [TestMethod]
+        public void CheckSumm1()
+        {
+            var menu = new Menu();
+            ResultSumm = 572;
+            Assert.AreEqual(menu.Summ(), ResultSumm);
+        }
+
+        [TestMethod]
+        public void CheckText_ResultSumm269()
+        {
+            var menu = new Menu();
+            ResultSumm = 269;
+            Assert.AreEqual(expected: menu.Check(), "Итого: " + ResultSumm.ToString());
+        }
+
+        [TestMethod]
+        public void CheckPuy()
+        {
+            var menu = new Menu();
+            Assert.AreNotEqual(menu.CheckPuy(), "");
+        }
+
+        [TestMethod]
+        public void CheckSumm2()
+        {
+            var menu = new Menu();
+            ResultSumm += 149 * 2;
+            Assert.AreEqual(menu.CheckSumm2(), ResultSumm);
+        }
+    }
+}
+

+ 5 - 0
KFC/Tests/packages.config

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

BIN
KFC/bf.jpg


BIN
KFC/burg.jpg


BIN
KFC/burgshef.jpg


BIN
KFC/cheez.jpg


BIN
KFC/chicken.jpg


BIN
KFC/d1.jpg


BIN
KFC/dkkfc.jpg


BIN
KFC/jun.png


BIN
KFC/psv.jpg


BIN
KFC/sdes.png


BIN
KFC/shef.png


BIN
KFC/ssoboy.png


BIN
KFC/t.jpg


BIN
KFC/td.jpg


BIN
KFC/tj.jpg