Forráskód Böngészése

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

gr692_kaa 3 éve
szülő
commit
5325dcc7dc

+ 31 - 0
KFC.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31321.278
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KFC", "KFC\KFC.csproj", "{E872C562-2A6E-49C8-8764-4BBE4E86F600}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestProjectKFC", "UnitTestProjectKFC\UnitTestProjectKFC.csproj", "{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{E872C562-2A6E-49C8-8764-4BBE4E86F600}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{E872C562-2A6E-49C8-8764-4BBE4E86F600}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E872C562-2A6E-49C8-8764-4BBE4E86F600}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{E872C562-2A6E-49C8-8764-4BBE4E86F600}.Release|Any CPU.Build.0 = Release|Any CPU
+		{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {CBBDFEE9-C1A5-44D2-976B-375F40A51864}
+	EndGlobalSection
+EndGlobal

BIN
KFC/1.jpeg


BIN
KFC/1KFC.jpeg


BIN
KFC/2.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.7.2" />
+    </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
+    {
+    }
+}

+ 181 - 0
KFC/KFC.csproj

@@ -0,0 +1,181 @@
+<?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>{E872C562-2A6E-49C8-8764-4BBE4E86F600}</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>
+    <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="KFC2.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="kartoshka.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="twotwest.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="bf.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="burg.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="burgshef.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="cheez.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="chicken.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="d1.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="dkkfc.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="jun.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Pd.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="psv.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="shef.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="t.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="td.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="tj.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="ssoboy.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="1.jpeg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="2.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="KFC3.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="KFC4.jpg" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

BIN
KFC/KFC2.jpg


BIN
KFC/KFC3.jpg


BIN
KFC/KFC4.jpg


+ 18 - 0
KFC/MainWindow.xaml

@@ -0,0 +1,18 @@
+<Window x:Class="KFC.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:KFC"
+        mc:Ignorable="d"
+        Title="MainWindow" Height="750" Width="500" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Image Source="KFC4.jpg" Stretch="Fill" Margin="0,218,0,198.4" />
+        <Image Source="KFC3.jpg" Stretch="Fill" Margin="0,0,0,478.4" />
+        <Image Source="KFC2.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();
+            Hide();
+        }
+    }
+}

+ 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="1.jpeg" 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="2.jpg" 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>

+ 36 - 0
KFC/Order.xaml.cs

@@ -0,0 +1,36 @@
+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)
+        {
+            Close();
+        }
+        private void Image_MouseDown_Ssoboy(object sender, MouseButtonEventArgs e)
+        {
+            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>

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/kartoshka.png


+ 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="twotwest.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="kartoshka.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>

+ 171 - 0
KFC/menu.xaml.cs

@@ -0,0 +1,171 @@
+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
+    }
+}

BIN
KFC/psv.jpg


BIN
KFC/shef.png


BIN
KFC/ssoboy.png


BIN
KFC/t.jpg


BIN
KFC/td.jpg


BIN
KFC/tj.jpg


BIN
KFC/twotwest.jpg


+ 20 - 0
UnitTestProjectKFC/Properties/AssemblyInfo.cs

@@ -0,0 +1,20 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("UnitTestProjectKFC")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("UnitTestProjectKFC")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+
+[assembly: Guid("173bcdf6-3e8a-4da1-abe4-84681f2e4ff5")]
+
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 42 - 0
UnitTestProjectKFC/UnitTest1.cs

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

+ 77 - 0
UnitTestProjectKFC/UnitTestProjectKFC.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>{173BCDF6-3E8A-4DA1-ABE4-84681F2E4FF5}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>UnitTestProjectKFC</RootNamespace>
+    <AssemblyName>UnitTestProjectKFC</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>{e872c562-2a6e-49c8-8764-4bbe4e86f600}</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>

+ 5 - 0
UnitTestProjectKFC/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>