Просмотр исходного кода

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

matvejskripov 3 лет назад
Родитель
Сommit
4582496d02

+ 31 - 0
KFC.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31829.152
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KFC", "KFC\KFC.csproj", "{7A53B053-A391-4048-A393-6153DCB59576}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KFCTest", "KFCTest\KFCTest.csproj", "{F624FE32-B108-4E91-B0A5-44CA91EC41E9}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{7A53B053-A391-4048-A393-6153DCB59576}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{7A53B053-A391-4048-A393-6153DCB59576}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{7A53B053-A391-4048-A393-6153DCB59576}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{7A53B053-A391-4048-A393-6153DCB59576}.Release|Any CPU.Build.0 = Release|Any CPU
+		{F624FE32-B108-4E91-B0A5-44CA91EC41E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{F624FE32-B108-4E91-B0A5-44CA91EC41E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{F624FE32-B108-4E91-B0A5-44CA91EC41E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{F624FE32-B108-4E91-B0A5-44CA91EC41E9}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {61681E8D-4389-4368-B059-99B7333FD0CC}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
KFC/App.config

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

+ 57 - 0
KFC/App.xaml

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

+ 17 - 0
KFC/App.xaml.cs

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

BIN
KFC/Images/f1.jpg


BIN
KFC/Images/f2.jpg


BIN
KFC/Images/f3.jpg


BIN
KFC/Images/here.jpg


BIN
KFC/Images/logo.png


BIN
KFC/Images/menu/burgers/B (1).jpg


BIN
KFC/Images/menu/burgers/B (2).jpg


BIN
KFC/Images/menu/burgers/B (3).jpg


BIN
KFC/Images/menu/burgers/B (4).jpg


BIN
KFC/Images/menu/ice creams/i (1).jpg


BIN
KFC/Images/menu/ice creams/i (2).jpg


BIN
KFC/Images/menu/ice creams/i (3).jpg


BIN
KFC/Images/menu/ice creams/i (4).jpg


BIN
KFC/Images/menu/logo2.jpg


BIN
KFC/Images/menu/twisters/t (1).jpg


BIN
KFC/Images/menu/twisters/t (2).jpg


BIN
KFC/Images/menu/twisters/t (3).jpg


BIN
KFC/Images/menu/twisters/t (4).jpg


BIN
KFC/Images/withmyself.jpg


+ 169 - 0
KFC/KFC.csproj

@@ -0,0 +1,169 @@
+<?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>{7A53B053-A391-4048-A393-6153DCB59576}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>KFC</RootNamespace>
+    <AssemblyName>KFC</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <WarningLevel>4</WarningLevel>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Xaml">
+      <RequiredTargetFramework>4.0</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="WindowsBase" />
+    <Reference Include="PresentationCore" />
+    <Reference Include="PresentationFramework" />
+  </ItemGroup>
+  <ItemGroup>
+    <ApplicationDefinition Include="App.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </ApplicationDefinition>
+    <Compile Include="windows\HW.xaml.cs">
+      <DependentUpon>HW.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="windows\WinMenu.xaml.cs">
+      <DependentUpon>WinMenu.xaml</DependentUpon>
+    </Compile>
+    <Page Include="MainWindow.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Compile Include="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Page Include="windows\HW.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="windows\WinMenu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    </EmbeddedResource>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\f1.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\f3.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\logo.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\f2.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\withmyself.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\here.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\burgers\B %281%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\burgers\B %282%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\burgers\B %283%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\burgers\B %284%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\ice creams\i %282%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\ice creams\i %283%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\ice creams\i %284%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\ice creams\i %281%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\twisters\t %281%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\twisters\t %282%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\twisters\t %283%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\twisters\t %284%29.jpg" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="Images\menu\logo2.jpg" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 17 - 0
KFC/MainWindow.xaml

@@ -0,0 +1,17 @@
+<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 Height="204" Width="500" Source="Images/f1.jpg" Stretch="Fill" VerticalAlignment="Top"/>
+        <Image HorizontalAlignment="Center" Height="250" Margin="-2,500,0,0" VerticalAlignment="Top" Width="500" Source="Images/f3.jpg" Stretch="Fill"/>
+        <Image Height="204" Margin="0,204,0,0" Width="500" Source="Images/f2.jpg" Stretch="Fill" VerticalAlignment="Top"/>
+        <Image HorizontalAlignment="Left" Height="158" VerticalAlignment="Top" Width="159" Source="Images/logo.png" Stretch="UniformToFill"/>
+        <Button Content="Сделать заказ" HorizontalAlignment="Center" Height="97" Margin="-1,403,0,0" VerticalAlignment="Top" Width="500" FontSize="72" FontWeight="Bold" FontFamily="Monotype Corsiva" RenderTransformOrigin="0.5,0.5" FontStyle="Italic" Click="MakeAnOrder" Background="#FFA3080C" Foreground="White" BorderBrush="Black" Style="{DynamicResource ButtonKFC}"/>
+        <Border x:Name="bord" BorderBrush="Black" BorderThickness="1" HorizontalAlignment="Left" Height="885" VerticalAlignment="Top" Width="800" Background="#7F000000" Visibility="Hidden"/>
+    </Grid>
+</Window>

+ 18 - 0
KFC/MainWindow.xaml.cs

@@ -0,0 +1,18 @@
+using System.Windows;
+
+namespace KFC
+{
+    public partial class MainWindow : Window
+    {
+        public MainWindow() { InitializeComponent(); }
+
+        private void MakeAnOrder(object sender, RoutedEventArgs e)
+        {
+            bord.Visibility = Visibility.Visible;
+            windows.HW f = new windows.HW(); f.ShowDialog();
+            Hide();
+            windows.WinMenu c = new windows.WinMenu(); c.Show();
+            Close();
+        }
+    }
+}

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

+ 23 - 0
KFC/windows/HW.xaml

@@ -0,0 +1,23 @@
+<Window x:Class="KFC.windows.HW"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:KFC.windows"
+        mc:Ignorable="d"
+        Title="Window1" Height="250" Width="400" Background="White" WindowStyle="None" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
+    <Grid>
+        <Button Content="" HorizontalAlignment="Left" Height="120" Margin="50,38,0,0" VerticalAlignment="Top" Width="120" Style="{DynamicResource ButtonKFC}" Click="Close" BorderBrush="Red">
+            <Button.Background>
+                <ImageBrush ImageSource="/KFC;component/Images/here.jpg"/>
+            </Button.Background>
+        </Button>
+        <Button Content="" HorizontalAlignment="Left" Height="120" Margin="236,38,0,0" VerticalAlignment="Top" Width="120" Click="Close" Style="{DynamicResource ButtonKFC}" BorderBrush="Red">
+            <Button.Background>
+                <ImageBrush ImageSource="/KFC;component/Images/withmyself.jpg"/>
+            </Button.Background>
+        </Button>
+        <TextBlock HorizontalAlignment="Left" Margin="50,158,0,0" TextWrapping="Wrap" Text="Здесь" VerticalAlignment="Top" Width="120" Foreground="Red" FontWeight="Bold" FontSize="22" TextAlignment="Center"/>
+        <TextBlock HorizontalAlignment="Left" Margin="236,158,0,0" TextWrapping="Wrap" Text="С собой" VerticalAlignment="Top" FontSize="22" FontWeight="Bold" Foreground="Red" TextAlignment="Center" Width="120"/>
+    </Grid>
+</Window>

+ 10 - 0
KFC/windows/HW.xaml.cs

@@ -0,0 +1,10 @@
+using System.Windows;
+
+namespace KFC.windows
+{
+    public partial class HW : Window
+    {
+        public HW() { InitializeComponent(); }
+        private void Close(object sender, RoutedEventArgs e) { Close(); }
+    }
+}

+ 310 - 0
KFC/windows/WinMenu.xaml

@@ -0,0 +1,310 @@
+<Window x:Class="KFC.windows.WinMenu"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:KFC.windows"
+        mc:Ignorable="d"
+        Title="Window2" Height="750" Width="500" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen">
+    <Window.Resources>
+        <LinearGradientBrush x:Key="TabItem.Static.Background" EndPoint="0,1" StartPoint="0,0">
+            <GradientStop Color="#F0F0F0" Offset="0.0"/>
+            <GradientStop Color="#E5E5E5" Offset="1.0"/>
+        </LinearGradientBrush>
+        <SolidColorBrush x:Key="TabItem.Static.Border" Color="#ACACAC"/>
+        <LinearGradientBrush x:Key="TabItem.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
+            <GradientStop Color="#ECF4FC" Offset="0.0"/>
+            <GradientStop Color="#DCECFC" Offset="1.0"/>
+        </LinearGradientBrush>
+        <SolidColorBrush x:Key="TabItem.MouseOver.Border" Color="#7EB4EA"/>
+        <SolidColorBrush x:Key="TabItem.Disabled.Background" Color="#F0F0F0"/>
+        <SolidColorBrush x:Key="TabItem.Disabled.Border" Color="#D9D9D9"/>
+        <SolidColorBrush x:Key="TabItem.Selected.Border" Color="#ACACAC"/>
+        <SolidColorBrush x:Key="TabItem.Selected.Background" Color="#FFFFFF"/>
+        <Style x:Key="TabItemKFC" TargetType="{x:Type TabItem}">
+            <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
+            <Setter Property="Foreground" Value="Black"/>
+            <Setter Property="Background" Value="{StaticResource TabItem.Static.Background}"/>
+            <Setter Property="BorderBrush" Value="{StaticResource TabItem.Static.Border}"/>
+            <Setter Property="Margin" Value="0"/>
+            <Setter Property="Padding" Value="6,2,6,2"/>
+            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
+            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
+            <Setter Property="Template">
+                <Setter.Value>
+                    <ControlTemplate TargetType="{x:Type TabItem}">
+                        <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
+                            <Border x:Name="mainBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" Background="{TemplateBinding Background}" Margin="0">
+                                <Border x:Name="innerBorder" BorderThickness="1,1,1,0" Margin="-1" Opacity="0"/>
+                            </Border>
+                            <ContentPresenter x:Name="contentPresenter" ContentSource="Header" Focusable="False" HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
+                        </Grid>
+                        <ControlTemplate.Triggers>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Opacity" TargetName="contentPresenter" Value="0.56"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Left"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Panel.ZIndex" Value="1"/>
+                                <Setter Property="Margin" Value="-2,-2,0,-2"/>
+                                <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,0,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,0,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Bottom"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Panel.ZIndex" Value="1"/>
+                                <Setter Property="Margin" Value="-2,0,-2,-2"/>
+                                <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,0,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,0,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Right"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Panel.ZIndex" Value="1"/>
+                                <Setter Property="Margin" Value="0,-2,-2,-2"/>
+                                <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="0,1,1,1"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="0,1,1,1"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="false"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
+                            </MultiDataTrigger>
+                            <MultiDataTrigger>
+                                <MultiDataTrigger.Conditions>
+                                    <Condition Binding="{Binding IsSelected, RelativeSource={RelativeSource Self}}" Value="true"/>
+                                    <Condition Binding="{Binding TabStripPlacement, RelativeSource={RelativeSource AncestorType={x:Type TabControl}}}" Value="Top"/>
+                                </MultiDataTrigger.Conditions>
+                                <Setter Property="Panel.ZIndex" Value="1"/>
+                                <Setter Property="Margin" Value="-2,-2,-2,0"/>
+                                <Setter Property="Opacity" TargetName="innerBorder" Value="1"/>
+                                <Setter Property="BorderThickness" TargetName="innerBorder" Value="1,1,1,0"/>
+                                <Setter Property="BorderThickness" TargetName="mainBorder" Value="1,1,1,0"/>
+                            </MultiDataTrigger>
+                        </ControlTemplate.Triggers>
+                    </ControlTemplate>
+                </Setter.Value>
+            </Setter>
+        </Style>
+    </Window.Resources>
+    <Grid>
+        <TabControl x:Name="Menu" Margin="0,97,0,49" TabStripPlacement="Left" BorderBrush="Red" x:FieldModifier="public">
+            <TabItem Header="" Margin="0" BorderBrush="Red" Style="{DynamicResource TabItemKFC}" Width="70" Height="70" FontWeight="Bold" Foreground="Red" OpacityMask="Red">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="/KFC;component/Images/menu/burgers/B (1).jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5" Height="600">
+                    <Button x:Name="b1" Content="" HorizontalAlignment="Left" Height="130" Margin="50,50,0,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="b1_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/burgers/B (1).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="b2" Content="" HorizontalAlignment="Right" Height="130" Margin="0,50,50,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="b2_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/burgers/B (2).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="b3" Content="" HorizontalAlignment="Left" Height="130" Margin="50,265,0,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="b3_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/burgers/B (3).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="b4" Content="" HorizontalAlignment="Right" Height="130" Margin="0,265,50,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="b4_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/burgers/B (4).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <TextBlock x:Name="BN1" HorizontalAlignment="Center" Margin="50,180,242,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="BP1" HorizontalAlignment="Left" Margin="50,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="BN2" HorizontalAlignment="Center" Margin="242,180,50,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="BP2" HorizontalAlignment="Left" Margin="242,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="BN3" HorizontalAlignment="Center" Margin="50,395,242,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="BP3" HorizontalAlignment="Left" Margin="50,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="BN4" HorizontalAlignment="Center" Margin="242,395,50,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="BP4" HorizontalAlignment="Left" Margin="242,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                </Grid>
+            </TabItem>
+            <TabItem Header="" Style="{DynamicResource TabItemKFC}" Width="70" Margin="0,5,0,-5" Foreground="#FFAE00FF" FontWeight="Bold" FontSize="9" Height="70" BorderBrush="Red">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="/KFC;component/Images/menu/ice creams/i (1).jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5" Height="600">
+                    <Button x:Name="i1" Content="" HorizontalAlignment="Left" Height="130" Margin="50,50,0,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="i1_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/ice creams/i (1).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="i2" Content="" HorizontalAlignment="Right" Height="130" Margin="0,50,50,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="i2_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/ice creams/i (2).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="i3" Content="" HorizontalAlignment="Left" Height="130" Margin="50,265,0,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="i3_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/ice creams/i (3).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="i4" Content="" HorizontalAlignment="Right" Height="130" Margin="0,265,50,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="i4_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/ice creams/i (4).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <TextBlock x:Name="IN1" HorizontalAlignment="Center" Margin="50,180,242,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161" FontSize="12"/>
+                    <TextBlock x:Name="IP1" HorizontalAlignment="Left" Margin="50,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="IN2" HorizontalAlignment="Center" Margin="242,180,50,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161" FontSize="12"/>
+                    <TextBlock x:Name="IP2" HorizontalAlignment="Left" Margin="242,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="IN3" HorizontalAlignment="Center" Margin="50,395,242,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161" FontSize="12"/>
+                    <TextBlock x:Name="IP3" HorizontalAlignment="Left" Margin="50,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="IN4" HorizontalAlignment="Center" Margin="242,395,50,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161" FontSize="12"/>
+                    <TextBlock x:Name="IP4" HorizontalAlignment="Left" Margin="242,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>               
+                </Grid>
+            </TabItem>
+            <TabItem Header="" Style="{DynamicResource TabItemKFC}" Width="70" Height="70" Margin="0,0,0,-10" Foreground="Red" FontWeight="Bold" BorderBrush="Red" VerticalAlignment="Bottom">
+                <TabItem.Background>
+                    <ImageBrush ImageSource="/KFC;component/Images/menu/twisters/t (1).jpg"/>
+                </TabItem.Background>
+                <Grid Background="#FFE5E5E5" Height="600">
+                    <Button x:Name="t1" Content="" HorizontalAlignment="Left" Height="130" Margin="50,50,0,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="t1_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/twisters/t (1).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="t2" Content="" HorizontalAlignment="Right" Height="130" Margin="0,50,50,0" VerticalAlignment="Top" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="t2_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/twisters/t (2).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="t3" Content="" HorizontalAlignment="Left" Height="130" Margin="50,265,0,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="t3_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/twisters/t (3).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <Button x:Name="t4" Content="" HorizontalAlignment="Right" Height="130" Margin="0,265,50,205" VerticalAlignment="Center" Width="130" Style="{DynamicResource ButtonKFC}" Foreground="Black" BorderBrush="{x:Null}" FontSize="18" Click="t4_Click">
+                        <Button.Background>
+                            <ImageBrush ImageSource="/KFC;component/Images/menu/twisters/t (4).jpg"/>
+                        </Button.Background>
+                    </Button>
+                    <TextBlock x:Name="TN1" HorizontalAlignment="Center" Margin="50,180,242,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="TP1" HorizontalAlignment="Left" Margin="50,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="TN2" HorizontalAlignment="Center" Margin="242,180,50,370" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="TP2" HorizontalAlignment="Left" Margin="242,31,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>                    
+                    <TextBlock x:Name="TN3" HorizontalAlignment="Center" Margin="50,395,242,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="TP3" HorizontalAlignment="Left" Margin="50,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                    <TextBlock x:Name="TN4" HorizontalAlignment="Center" Margin="242,395,50,155" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Height="50" Width="130" TextAlignment="Center" LineHeight="3" TextDecorations="{x:Null}" FontWeight="Bold" Foreground="#FF616161"/>
+                    <TextBlock x:Name="TP4" HorizontalAlignment="Left" Margin="242,246,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="130" TextAlignment="Center" Foreground="Red" FontSize="14"/>
+                  </Grid>
+            </TabItem>
+        </TabControl>
+        <TextBlock x:Name="TS" HorizontalAlignment="Left" Margin="175,709,0,0" TextWrapping="Wrap" Text="Итог" VerticalAlignment="Top" FontSize="22" Height="31" Width="55" Visibility="Hidden" x:FieldModifier="public"/>
+        <Border x:Name="BS" BorderBrush="Red" BorderThickness="1" HorizontalAlignment="Left" Height="31" Margin="235,709,0,0" VerticalAlignment="Top" Width="112" Visibility="Hidden" x:FieldModifier="public">
+            <Label x:Name="S" Content="0р." HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" x:FieldModifier="public"/>
+        </Border>
+        <Button x:Name="END" Content="ОПЛАТИТЬ" HorizontalAlignment="Left" Height="31" Margin="408,709,0,0" VerticalAlignment="Top" Width="82" BorderBrush="Red" Background="#FFFDC47F" Foreground="Red" FontWeight="Bold" Visibility="Hidden" Click="END_Click" x:FieldModifier="public"/>
+        <Image HorizontalAlignment="Center" Margin="0,5,0,0" VerticalAlignment="Top" Source="/KFC;component/Images/menu/logo2.jpg" Stretch="UniformToFill" Width="216" Height="86"/>
+        <TextBox x:Name="tbfin" Height="604" Margin="0,97,0,49" TextWrapping="Wrap" Text="Ваш заказ:" Width="500" FontSize="18" Background="White" Visibility="Hidden" FontFamily="Times New Roman" x:FieldModifier="public"/>
+        <Button x:Name="O_M" Content="ЗАКАЗ" HorizontalAlignment="Left" Height="31" Margin="10,709,0,0" VerticalAlignment="Top" Width="85" Click="O_M_Click" FontWeight="Bold" FontSize="20" Foreground="Red" BorderBrush="Red" Background="White" x:FieldModifier="public"/>
+    </Grid>
+</Window>

+ 94 - 0
KFC/windows/WinMenu.xaml.cs

@@ -0,0 +1,94 @@
+using System;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Media;
+
+namespace KFC.windows
+{
+    public partial class WinMenu : Window
+    {
+        public int summ = 0;
+        public string[,] name = {
+            {"Песто бургер", "Чизбургер Де Люкс", "Шефбургер Де Люкс острый", "Шефбургер Де Люкс"},
+            {"Мороженое Кит Кат", "Мороженое Кит Кат с шоколадным топпингом", "Мороженое Кит Кат с клубничным топпингом", "Мороженое банановое"},
+            {"Боксмастер оригинальный", "Твистер Де Люкс оригинальный", "Твистер оригинальный", "Твистер Джуниор"}
+        };
+        public int[,] price = {
+            {169, 149, 149, 139},
+            {99, 99, 99, 75},
+            {199, 189, 179, 99}
+        };
+
+        public WinMenu() { InitializeComponent(); TextInBox(); }
+        
+        public string TextInBox()
+        {
+            string res = "";
+            for (int i = 0; i < 3; i++)
+            {
+                string n = i == 0 ? "B" : i == 1 ? "I" : "T";
+                for (int j = 0; j < 4; j++)
+                {
+                    (FindName(n + "N" + (j + 1)) as TextBlock).Text = name[i, j];
+                    (FindName(n + "P" + (j + 1)) as TextBlock).Text = price[i, j] + "р.";
+                    res += (FindName(n + "N" + (j + 1)) as TextBlock).Text + (FindName(n + "P" + (j + 1)) as TextBlock).Text;
+                }
+            }
+
+            return res;
+        }
+
+        public int Summ(ref int summ, int i, int j)
+        {
+            string n = new string('_', 50 - (name[i, j].Length + price[i, j].ToString().Length + 2));
+            tbfin.AppendText(Environment.NewLine + name[i, j] + n + price[i, j] + "р.");
+
+            summ += price[i, j];
+            S.Content = summ + "р.";
+
+            return summ;
+        }
+
+        private void O_M_Click(object sender, RoutedEventArgs e) { OM(); }
+        public void OM()
+        {
+            if (tbfin.Visibility == Visibility.Hidden)
+            {
+                O_M.Content = "МЕНЮ"; O_M.Foreground = Brushes.White;
+                O_M.BorderBrush = Brushes.White; O_M.Background = Brushes.Red;
+
+                Menu.Visibility = Visibility.Hidden;
+
+                tbfin.Visibility = Visibility.Visible; TS.Visibility = Visibility.Visible;
+                BS.Visibility = Visibility.Visible; END.Visibility = Visibility.Visible;
+            }
+            else
+            {
+                O_M.Content = "ЗАКАЗ"; O_M.Foreground = Brushes.Red;
+                O_M.BorderBrush = Brushes.Red; O_M.Background = Brushes.White;
+
+                Menu.Visibility = Visibility.Visible;
+
+                tbfin.Visibility = Visibility.Hidden; TS.Visibility = Visibility.Hidden;
+                BS.Visibility = Visibility.Hidden; END.Visibility = Visibility.Hidden;
+            }
+        }
+
+        private void END_Click(object sender, RoutedEventArgs e) { Close(); }
+
+        private void b1_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 0, 0); }
+        private void b2_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 0, 1); }
+        private void b3_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 0, 2); }
+        private void b4_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 0, 3); }
+
+        private void i1_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 1, 0); }
+        private void i2_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 1, 1); }
+        private void i3_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 1, 2); }
+        private void i4_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 1, 3); }
+
+        private void t1_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 2, 0); }
+        private void t2_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 2, 1); }
+        private void t3_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 2, 2); }
+        private void t4_Click(object sender, RoutedEventArgs e) { Summ(ref summ, 2, 3); }
+    }
+}

+ 81 - 0
KFCTest/KFCTest.cs

@@ -0,0 +1,81 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using KFC.windows;
+using System.Windows;
+using System.Windows.Media;
+
+namespace KFCTest
+{
+    [TestClass]
+    public class KFCTest
+    {
+        public static WinMenu m = new WinMenu();
+       
+        [TestMethod]
+        public void TestTextInBox() // Тест правильности вывода цен и названий
+        {
+            string res = "";
+            for (int i = 0; i < 3; i++)
+            { for (int j = 0; j < 4; j++) { res += m.name[i, j] + m.price[i, j] + "р."; } }
+
+            Assert.AreEqual(res, m.TextInBox());
+        }
+
+        [TestClass]
+        public class KFCTest_TestSumm
+        {
+            int i = 0, j = 0, summ = 0;
+
+            [TestMethod]
+            public void TestSumm1() // Тест прибавления денег к сумме
+            { Assert.AreEqual(summ + m.price[i, j], m.Summ(ref summ, i, j)); }
+            
+            [TestMethod]
+            public void TestSumm2() // Тест вывода суммы
+            {
+                string res = summ + m.price[i, j] + "р.";
+                m.Summ(ref summ, i, j);
+                Assert.AreEqual(res, m.S.Content);
+            }
+
+            [TestMethod]
+            public void TestSumm3() // Тест формирования заказа
+            {
+                string o = Environment.NewLine + m.name[i, j] + new string('_', 50 - (m.name[i, j].Length + m.price[i, j].ToString().Length + 2)) + m.price[i, j] + "р.";
+                string res = "Ваш заказ:" + o + o + o;
+                m.Summ(ref summ, i, i);
+
+                Assert.AreEqual(res, m.tbfin.Text);
+            }
+        }
+        [TestMethod]
+        public void TestO_M_Click() // Тест открытия и закрытия списка покупок заказа
+        {
+            m.OM(); // Был открыт список покупок заказа
+
+            Assert.AreEqual(Visibility.Visible, m.tbfin.Visibility);
+            Assert.AreEqual("МЕНЮ", m.O_M.Content);
+            Assert.AreEqual(Brushes.White, m.O_M.Foreground);
+            Assert.AreEqual(Brushes.White, m.O_M.BorderBrush);
+            Assert.AreEqual(Brushes.Red, m.O_M.Background);
+            Assert.AreEqual(Visibility.Hidden, m.Menu.Visibility);
+            Assert.AreEqual(Visibility.Visible, m.tbfin.Visibility);
+            Assert.AreEqual(Visibility.Visible, m.TS.Visibility);
+            Assert.AreEqual(Visibility.Visible, m.BS.Visibility);
+            Assert.AreEqual(Visibility.Visible, m.END.Visibility);
+
+            m.OM(); // Было открыто меню
+
+            Assert.AreEqual(Visibility.Hidden, m.tbfin.Visibility);
+            Assert.AreEqual("ЗАКАЗ", m.O_M.Content);
+            Assert.AreEqual(Brushes.Red, m.O_M.Foreground);
+            Assert.AreEqual(Brushes.Red, m.O_M.BorderBrush);
+            Assert.AreEqual(Brushes.White, m.O_M.Background);
+            Assert.AreEqual(Visibility.Visible, m.Menu.Visibility);
+            Assert.AreEqual(Visibility.Hidden, m.tbfin.Visibility);
+            Assert.AreEqual(Visibility.Hidden, m.TS.Visibility);
+            Assert.AreEqual(Visibility.Hidden, m.BS.Visibility);
+            Assert.AreEqual(Visibility.Hidden, m.END.Visibility);
+        }
+    }
+}

+ 77 - 0
KFCTest/KFCTest.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>{F624FE32-B108-4E91-B0A5-44CA91EC41E9}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>KFCTest</RootNamespace>
+    <AssemblyName>KFCTest</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="KFCTest.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="packages.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\KFC\KFC.csproj">
+      <Project>{7a53b053-a391-4048-a393-6153dcb59576}</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>

+ 20 - 0
KFCTest/Properties/AssemblyInfo.cs

@@ -0,0 +1,20 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("KFCTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("KFCTest")]
+[assembly: AssemblyCopyright("Copyright ©  2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+[assembly: ComVisible(false)]
+
+[assembly: Guid("f624fe32-b108-4e91-b0a5-44ca91ec41e9")]
+
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

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