Procházet zdrojové kódy

Добавлен проект

polinakulakova114@gmail.com před 3 roky
revize
2593f9e6ca
100 změnil soubory, kde provedl 64637 přidání a 0 odebrání
  1. binární
      .vs/mateo/v16/.suo
  2. binární
      .vs/mateo/v16/TestStore/0/000.testlog
  3. binární
      .vs/mateo/v16/TestStore/0/testlog.manifest
  4. 25 0
      mateo.sln
  5. 13 0
      mateo/App.config
  6. 9 0
      mateo/App.xaml
  7. 17 0
      mateo/App.xaml.cs
  8. 40 0
      mateo/Attraction.cs
  9. 30 0
      mateo/Card.cs
  10. 24 0
      mateo/DB.cs
  11. 37 0
      mateo/Employees.cs
  12. 47 0
      mateo/First.xaml
  13. 162 0
      mateo/First.xaml.cs
  14. 24 0
      mateo/History.cs
  15. 151 0
      mateo/MainWindow.xaml
  16. 317 0
      mateo/MainWindow.xaml.cs
  17. 42 0
      mateo/Model1.Context.cs
  18. 636 0
      mateo/Model1.Context.tt
  19. 10 0
      mateo/Model1.Designer.cs
  20. 9 0
      mateo/Model1.cs
  21. 828 0
      mateo/Model1.edmx
  22. 35 0
      mateo/Model1.edmx.diagram
  23. 733 0
      mateo/Model1.tt
  24. 68 0
      mateo/Profile.xaml
  25. 159 0
      mateo/Profile.xaml.cs
  26. 55 0
      mateo/Properties/AssemblyInfo.cs
  27. 70 0
      mateo/Properties/Resources.Designer.cs
  28. 117 0
      mateo/Properties/Resources.resx
  29. 29 0
      mateo/Properties/Settings.Designer.cs
  30. 7 0
      mateo/Properties/Settings.settings
  31. 29 0
      mateo/Role.cs
  32. 29 0
      mateo/StatusAttraction.cs
  33. 29 0
      mateo/StatusEmployees.cs
  34. 29 0
      mateo/StatusPay.cs
  35. 268 0
      mateo/SysAdmin.xaml
  36. 309 0
      mateo/SysAdmin.xaml.cs
  37. 31 0
      mateo/Tickets.cs
  38. 29 0
      mateo/Type.cs
  39. 29 0
      mateo/TypeTickets.cs
  40. 39 0
      mateo/Users.cs
  41. binární
      mateo/bin/Debug/EntityFramework.SqlServer.dll
  42. 2093 0
      mateo/bin/Debug/EntityFramework.SqlServer.xml
  43. binární
      mateo/bin/Debug/EntityFramework.dll
  44. 53236 0
      mateo/bin/Debug/EntityFramework.xml
  45. binární
      mateo/bin/Debug/mateo.exe
  46. 13 0
      mateo/bin/Debug/mateo.exe.config
  47. binární
      mateo/bin/Debug/mateo.pdb
  48. binární
      mateo/bin/Debug/ru/EntityFramework.resources.dll
  49. binární
      mateo/image/card.png
  50. binární
      mateo/image/delete.png
  51. binární
      mateo/image/exit.png
  52. binární
      mateo/image/gmail.png
  53. binární
      mateo/image/insta.png
  54. binární
      mateo/image/invisible.png
  55. binární
      mateo/image/logo.png
  56. binární
      mateo/image/logosys.png
  57. binární
      mateo/image/logout.png
  58. binární
      mateo/image/tickets.png
  59. binární
      mateo/image/tickets2.png
  60. binární
      mateo/image/visible.png
  61. binární
      mateo/image/vk.png
  62. binární
      mateo/image/whatsapp.png
  63. 238 0
      mateo/mateo.csproj
  64. 4 0
      mateo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
  65. 70 0
      mateo/obj/Debug/App.g.cs
  66. 70 0
      mateo/obj/Debug/App.g.i.cs
  67. binární
      mateo/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  68. binární
      mateo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  69. binární
      mateo/obj/Debug/First.baml
  70. 245 0
      mateo/obj/Debug/First.g.cs
  71. 245 0
      mateo/obj/Debug/First.g.i.cs
  72. binární
      mateo/obj/Debug/MainWindow.baml
  73. 423 0
      mateo/obj/Debug/MainWindow.g.cs
  74. 423 0
      mateo/obj/Debug/MainWindow.g.i.cs
  75. binární
      mateo/obj/Debug/Profile.baml
  76. 290 0
      mateo/obj/Debug/Profile.g.cs
  77. 290 0
      mateo/obj/Debug/Profile.g.i.cs
  78. binární
      mateo/obj/Debug/SysAdmin.baml
  79. 592 0
      mateo/obj/Debug/SysAdmin.g.cs
  80. 592 0
      mateo/obj/Debug/SysAdmin.g.i.cs
  81. 0 0
      mateo/obj/Debug/TempPE/Model.Context.cs.dll
  82. binární
      mateo/obj/Debug/TempPE/Model.Designer.cs.dll
  83. binární
      mateo/obj/Debug/TempPE/Model.cs.dll
  84. 0 0
      mateo/obj/Debug/TempPE/Model1.Context.cs.dll
  85. binární
      mateo/obj/Debug/TempPE/Model1.Designer.cs.dll
  86. binární
      mateo/obj/Debug/TempPE/Model1.cs.dll
  87. binární
      mateo/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  88. 0 0
      mateo/obj/Debug/TempPE/mateo.Context.cs.dll
  89. binární
      mateo/obj/Debug/TempPE/mateo.Designer.cs.dll
  90. binární
      mateo/obj/Debug/TempPE/mateo.cs.dll
  91. 207 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model.csdl
  92. 99 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model.msl
  93. 195 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model.ssdl
  94. 339 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model1.csdl
  95. 141 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model1.msl
  96. 317 0
      mateo/obj/Debug/edmxResourcesToEmbed/Model1.ssdl
  97. binární
      mateo/obj/Debug/mateo.Properties.Resources.resources
  98. binární
      mateo/obj/Debug/mateo.csproj.AssemblyReference.cache
  99. 0 0
      mateo/obj/Debug/mateo.csproj.CopyComplete
  100. 0 0
      mateo/obj/Debug/mateo.csproj.CoreCompileInputs.cache

binární
.vs/mateo/v16/.suo


binární
.vs/mateo/v16/TestStore/0/000.testlog


binární
.vs/mateo/v16/TestStore/0/testlog.manifest


+ 25 - 0
mateo.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31624.102
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mateo", "mateo\mateo.csproj", "{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {5CBC0ABE-078F-4315-A3A6-9FDDCA4100DB}
+	EndGlobalSection
+EndGlobal

+ 13 - 0
mateo/App.config

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <appSettings>
+    <!-- Поставщик -->
+    <add key="provider" value="System.Data.SqlClient" />
+    <!-- Строка подключения -->
+    <add key="conStr" value="Data Source=LAPTOP-1F5OKQJV\SQLEXPRESS;          Initial Catalog=mateo;          Integrated Security=True;          Connect Timeout=30;          Encrypt=False;          TrustServerCertificate=False;          ApplicationIntent=ReadWrite;          MultiSubnetFailover=False" />
+  </appSettings>
+ 
+<connectionStrings><add name="mateoEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-1F5OKQJV\SQLEXPRESS;initial catalog=mateo;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings></configuration>

+ 9 - 0
mateo/App.xaml

@@ -0,0 +1,9 @@
+<Application x:Class="mateo.App"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:local="clr-namespace:mateo"
+             StartupUri="First.xaml">
+    <Application.Resources>
+
+    </Application.Resources>
+</Application>

+ 17 - 0
mateo/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 mateo
+{
+    /// <summary>
+    /// Логика взаимодействия для App.xaml
+    /// </summary>
+    public partial class App : Application
+    {
+    }
+}

+ 40 - 0
mateo/Attraction.cs

@@ -0,0 +1,40 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Attraction
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Attraction()
+        {
+            this.Tickets = new HashSet<Tickets>();
+        }
+    
+        public int IDAttraction { get; set; }
+        public string NameAttraction { get; set; }
+        public string Description { get; set; }
+        public Nullable<decimal> PriceOld { get; set; }
+        public Nullable<decimal> PriceBaby { get; set; }
+        public int QuantityAttraction { get; set; }
+        public byte[] ImageAttraction { get; set; }
+        public int FKEmployees { get; set; }
+        public int FKStatusAttraction { get; set; }
+        public int FKType { get; set; }
+    
+        public virtual Employees Employees { get; set; }
+        public virtual StatusAttraction StatusAttraction { get; set; }
+        public virtual Type Type { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Tickets> Tickets { get; set; }
+    }
+}

+ 30 - 0
mateo/Card.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Card
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Card()
+        {
+            this.Users = new HashSet<Users>();
+        }
+    
+        public int IDCard { get; set; }
+        public string NumberCard { get; set; }
+        public Nullable<decimal> Balance { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Users> Users { get; set; }
+    }
+}

+ 24 - 0
mateo/DB.cs

@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace mateo
+{
+    public class DB
+    {
+        public static mateoEntities _context;
+        public static mateoEntities GetContext()
+        {
+            if (_context==null)
+            {
+                _context = new mateoEntities();
+            }
+            return _context;
+        }
+        public static int Iduser;
+        public static int Idcard;
+        public static int Idemployees;
+    }
+}

+ 37 - 0
mateo/Employees.cs

@@ -0,0 +1,37 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Employees
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Employees()
+        {
+            this.Attraction = new HashSet<Attraction>();
+        }
+    
+        public int IDEmployees { get; set; }
+        public string LastName { get; set; }
+        public string FirstName { get; set; }
+        public string MiddleName { get; set; }
+        public string Login { get; set; }
+        public string Password { get; set; }
+        public int FKRole { get; set; }
+        public int FKStatusEmployees { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Attraction> Attraction { get; set; }
+        public virtual Role Role { get; set; }
+        public virtual StatusEmployees StatusEmployees { get; set; }
+    }
+}

+ 47 - 0
mateo/First.xaml

@@ -0,0 +1,47 @@
+<Window x:Class="mateo.First"
+        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:mateo"
+        mc:Ignorable="d"
+        Title="First" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True" Background="Transparent">
+    <Grid Background="White">
+        <!--<Border Background="White" CornerRadius="20"/>-->
+        <Button x:Name="exit" Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btn_exit" Margin="750,10,10,400">
+            <Image Source="image\exit.png" Height="40" Width="40"/>
+        </Button>
+
+
+        <Grid  Background="#E74C32" Margin="0,0,405,-0.4">
+            <Image Source="image/logo.png" Margin="44,247,77,0"/>
+        </Grid>
+
+        <Grid x:Name="grid_vhod" Margin="400,0,0,-0.4" Visibility="Visible">
+            <TextBox x:Name="vvod_login" FontSize="18"
+                 BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,162,63,259"/>
+            <PasswordBox x:Name="vvod_pass" FontSize="18"
+                     BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,226,63,198"/>
+            <Button x:Name="vhod" Content="Войти" Background="Black" Foreground="White" FontSize="18" Click="btn_vhod" Margin="123,293,123,104" IsDefault="True"/>
+            <Button x:Name="registr" Content="Нет аккаунта? Зарегистрироваться" Background="Transparent" FontSize="18" BorderThickness="0" Click="btn_registr" Margin="48,351,48,70"/>
+        </Grid>
+
+        <Grid x:Name="grid_registr" Margin="400,0,0,-0.4" Visibility="Hidden">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="0*"/>
+                <ColumnDefinition/>
+            </Grid.ColumnDefinitions>
+            <TextBox  x:Name="vvod_LNAME" Text="ФАМИЛИЯ" FontSize="18"
+                 BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,90,63,330" Grid.ColumnSpan="2"/>
+            <TextBox  x:Name="vvod_FNAME" Text="ИМЯ" FontSize="18"
+                 BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,134,63,286" Grid.ColumnSpan="2"/>
+            <TextBox  x:Name="vvod_MNAME" Text="ОТЧЕСТВО" FontSize="18"
+                 BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,178,63,242" Grid.ColumnSpan="2"/>
+            <TextBox x:Name="vvod_login_reg" Text="login" FontSize="18"
+                 BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,222,63,198" Grid.ColumnSpan="2"/>
+            <PasswordBox x:Name="vvod_pass_reg" FontSize="18"
+                     BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,266,63,154" Grid.ColumnSpan="2"/>
+            <Button x:Name="registr2" Content="Зарегистрироваться" Background="Black" Foreground="White" FontSize="18" Click="btn_regist2" Margin="101,333,102,64" Grid.ColumnSpan="2"/>
+        </Grid>
+    </Grid>
+</Window>

+ 162 - 0
mateo/First.xaml.cs

@@ -0,0 +1,162 @@
+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;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace mateo
+{
+    public partial class First : Window
+    {
+        public First()
+        {
+            InitializeComponent();
+            vvod_login.Focus();
+        }
+
+        private void btn_exit(object sender, RoutedEventArgs e)
+        {
+            Application.Current.Shutdown();
+        }
+
+        private void btn_vhod(object sender, RoutedEventArgs e)
+        {
+            if (vvod_login.Text == "" || vvod_pass.Password == "") MessageBox.Show("Пустые поля");
+            else
+            {
+                //пользователь
+                if (DB.GetContext().Users.FirstOrDefault(x => x.Login == vvod_login.Text && x.Password == vvod_pass.Password) != null) //?&&||???
+                {
+                    DB.Iduser = DB.GetContext().Users.FirstOrDefault(x => x.Login == vvod_login.Text && x.Password == vvod_pass.Password).IDUsers;
+
+                    MessageBox.Show("Добро пожаловать");
+
+                    MainWindow mainWindow = new MainWindow();
+                    mainWindow.Show();
+                    this.Close();
+                }
+
+                //администратор
+                else if (DB.GetContext().Employees.FirstOrDefault(x => x.Login == vvod_login.Text && x.Password == vvod_pass.Password) != null) //?&&||???
+                {
+                    DB.Idemployees = DB.GetContext().Employees.FirstOrDefault(x => x.Login == vvod_login.Text && x.Password == vvod_pass.Password).IDEmployees;
+                    if (DB.GetContext().Employees.Where(x => x.IDEmployees == DB.Idemployees).FirstOrDefault().FKStatusEmployees != 2)
+                    {
+                        MessageBox.Show("Вы вощли как администратор");
+
+                        SysAdmin sysAdmin = new SysAdmin();
+                        sysAdmin.Show();
+                        this.Close();
+                    }
+                    else MessageBox.Show("Вы были уволены");
+                }
+                else
+                {
+                    MessageBox.Show("Такого пользователя не сущ-ет");
+                    vvod_login.Text = "";
+                    vvod_pass.Password = "";
+                }
+            }
+        }
+
+        private void btn_registr(object sender, RoutedEventArgs e)
+        {
+            grid_registr.Visibility = Visibility.Visible;
+            grid_vhod.Visibility = Visibility.Hidden;
+        }
+
+        private void btn_regist2(object sender, RoutedEventArgs e)
+        {
+            if (vvod_login_reg.Text == "" || vvod_pass_reg.Password == "") MessageBox.Show("Пустые поля!");
+            else
+            {
+                try
+                {
+                    //проверяем есть ли пользователь с указанным логином в системе //проверяем в пользователях и админах
+                    if (DB.GetContext().Users.FirstOrDefault(x => x.Login == vvod_login_reg.Text) == null && DB.GetContext().Employees.FirstOrDefault(x => x.Login == vvod_login_reg.Text) == null) //||&&????????    || x.Password == vvod_pass_reg.Password
+                    {
+
+                        //string numberCard = "0000 0000 0000 0000";
+                        //проверяем есть ли карта с таким номером
+
+                        string numberCard;
+                        do
+                        {
+                            Random random = new Random();
+                            int card1 = random.Next(1000, 9999);
+                            int card2 = random.Next(1000, 9999);
+                            int card3 = random.Next(1000, 9999);
+                            int card4 = random.Next(1000, 9999);
+                            numberCard = card1.ToString() + " " + card2.ToString() + " " + card3.ToString() + " " + card4.ToString();
+                        } while (DB.GetContext().Card.FirstOrDefault(x => x.NumberCard == numberCard) != null);
+
+
+                        //записать номер карты в табл Card
+                        DB.GetContext().Card.Add(new Card { NumberCard = numberCard });
+                        DB.GetContext().SaveChanges();
+
+                        //ЗАПИСАТЬ НОМЕР КАРТЫ ДЛЯ ИСПОЛЬЗОВАНИЯ В PROFILE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+                        /*Profile profile = new Profile();
+                        profile.idcard.Text = DB.GetContext().Card.OrderByDescending(x => x.IDCard).FirstOrDefault().ToString(); //DB.GetContext().Card.Add(new Card { NumberCard = numberCard}).ToString(); //эээ???
+                        */
+                        //aa = DB.GetContext().Card.OrderByDescending(x => x.IDCard).FirstOrDefault().IDCard;
+
+
+                        DB.Idcard = DB.GetContext().Card.OrderByDescending(x => x.IDCard).FirstOrDefault().IDCard;
+
+                        if (vvod_MNAME.Text == "")
+                        {
+                            vvod_MNAME.Text = null;
+                        }
+
+                        //записать пользователя и привязать id в табл Users
+                        var card = DB.GetContext().Card.OrderByDescending(x => x.IDCard).FirstOrDefault();
+                        DB.GetContext().Users.Add(new Users
+                        {
+                            LastName = vvod_LNAME.Text,
+                            FirstName = vvod_FNAME.Text,
+                            MiddleName = vvod_MNAME.Text,
+                            Login = vvod_login_reg.Text,
+                            Password = vvod_pass_reg.Password,
+                            FKCard = card.IDCard
+                        });
+
+                        //ЗАПИСАТЬ id ПОЛЬЗОВАТЕЛЯ ДЛЯ ИСПОЛЬЗОВАНИЯ В PROFILE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+                        // profile.iduser.Text = DB.GetContext().Users.OrderByDescending(x => x.IDUsers).FirstOrDefault().ToString();
+                        DB.GetContext().SaveChanges();
+
+                        MessageBox.Show("Пользователь " + vvod_LNAME.Text + " " + vvod_FNAME.Text + " " + " был добавлен\nДобро пожаловать! " + numberCard);
+                        MainWindow mainWindow = new MainWindow();
+                        mainWindow.Show();
+                        this.Close();
+
+                    }
+                    else
+                    {
+                        MessageBox.Show("Пользователь с таким логином уже есть!");
+                        vvod_login_reg.Text = "";
+                    }
+                } 
+                catch(Exception ex)
+                {
+                    MessageBox.Show(ex.ToString());
+                }
+            }
+
+
+            
+
+           
+        }
+    }
+}

+ 24 - 0
mateo/History.cs

@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class History
+    {
+        public int IDHistory { get; set; }
+        public int FKUser { get; set; }
+        public System.DateTime DateTime { get; set; }
+        public decimal Summ { get; set; }
+    
+        public virtual Users Users { get; set; }
+    }
+}

+ 151 - 0
mateo/MainWindow.xaml

@@ -0,0 +1,151 @@
+<Window x:Class="mateo.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:mateo"
+        mc:Ignorable="d"
+        Title="Mateo" Height="540" Width="960" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
+
+    <Grid Background="#ffff">
+        <Grid Margin="0,0,824,0" Background="#E74C32">
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,371,48,129" Click="btn_insta">
+                <Image Source="image\insta.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,331,48,169" Click="btn_vk">
+                <Image Source="image\vk.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,413,48,87" Click="btn_whatsapp">
+                <Image Source="image\whatsapp.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,454,48,46" Click="btn_gmail">
+                <Image Source="image\gmail.png" Height="40" Width="40"/>
+            </Button>
+        </Grid>
+
+        <Grid Background="#E74C32" Margin="0,0,0,470">
+            <Image Source="image/logo.png" Margin="0,0,820,-20"/>
+            <Button Content="Профиль" FontSize="16" BorderThickness="0" Background="Transparent" Margin="627,10,223,10" MaxWidth="80" Click="btnProfileClick"/>
+            <Button Content="Услуги" FontSize="16" BorderThickness="0" Background="Transparent" Margin="146,10,674,10" MaxWidth="80" Click="btnUslugiClick"/>
+            <TextBlock Text="Парк развлечений" HorizontalAlignment="Center" FontSize="28" Foreground="#ffff" Margin="282,5,327,0"/>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnLogout" Margin="860,14,60,16">
+                <Image Source="image\logout.png" Height="40" Width="40"/>
+            </Button>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnExit" Margin="910,14,10,16">
+                <Image Source="image\exit.png" Height="40" Width="40"/>
+            </Button>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnTickets" Margin="810,14,105,16">
+                <Image Source="image\tickets.png" Height="40" Width="40"/>
+            </Button>
+        </Grid>
+
+        <ListView MouseDoubleClick="ViewAttraction" x:Name="listAttraction" Margin="150,80,10,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalContentAlignment="Center" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0">
+            <ListView.ItemsPanel>
+                <ItemsPanelTemplate>
+                    <WrapPanel Orientation="Horizontal" HorizontalAlignment="Center"/>
+                </ItemsPanelTemplate>
+            </ListView.ItemsPanel>
+            <ListView.ItemTemplate>
+                <DataTemplate>
+                    <Border BorderBrush="Black" BorderThickness="2">
+                        <Grid Margin="15" >
+                            <Grid.RowDefinitions>
+                                <RowDefinition Height="auto"/>
+                                <RowDefinition Height="auto"/>
+                                <RowDefinition Height="auto"/>
+                                <RowDefinition Height="auto"/>
+                                <RowDefinition Height="auto"/>
+                            </Grid.RowDefinitions>
+                            <Image Source="{Binding ImageAttraction}" Width="200" Height="100" 
+                               Grid.Row="1" Stretch="Uniform" HorizontalAlignment="Center" Margin="5"/>
+                            <TextBlock Grid.Row="0" HorizontalAlignment="Center" FontSize="18" Text="{Binding NameAttraction}"/>
+                            <!--<TextBlock Name="txtPriceOld" Grid.Row="2" FontSize="14" Text="{Binding PriceOld, StringFormat=Цена: 0.00 руб.}"/>
+                            <TextBlock Name="txtPriceBaby" Grid.Row="3" FontSize="14" Text="{Binding PriceBaby, StringFormat=Цена: 0.00 руб.}"/>-->
+                            <TextBlock Name="txtTypeAttraction" Grid.Row="2" FontSize="14" Text="{Binding Type.Type1, StringFormat=Тип: {0}}"/>
+
+                            <!--<Button Content="Забронировать" Grid.Row="4" Foreground="White" 
+                                BorderThickness="0" Background="Black" Click="btnBronClick" Height="30" Width="110" HorizontalAlignment="Right" Margin="5,5,5,0"/>-->
+                        </Grid>
+                    </Border>
+                </DataTemplate>
+            </ListView.ItemTemplate>
+        </ListView>
+
+        <ScrollViewer x:Name="stackAttraction" Margin="136,80,0,0" Background="White" Visibility="Hidden">
+            <StackPanel>
+                <TextBlock x:Name="txtNameAttraction" FontSize="18" TextAlignment="Center" HorizontalAlignment="Center"/>
+                <Image x:Name="imgAttraction" Width="300" Height="250"/>
+                <TextBlock x:Name="txtDescriptionAttraction" HorizontalAlignment="Center" FontSize="16" TextWrapping="Wrap" Margin="60,15,60,15"/>
+                    <StackPanel x:Name="stackPriceOld" Orientation="Horizontal" Margin="5">
+                        <TextBlock x:Name="txtPriceOld" Width="150" FontSize="16" Margin="50,0,0,0"/>
+                        <Button Content="+" FontSize="16" Width="30" Height="30" Click="BtnAddOldAttraction"/>
+                    </StackPanel>
+                    <StackPanel x:Name="stackPriceBaby" Orientation="Horizontal" Margin="5">
+                        <TextBlock x:Name="txtPriceBaby" Width="150" FontSize="16" Margin="50,0,0,0"/>
+                        <Button Content="+" FontSize="16" Width="30" Height="30" Click="BtnAddBabyAttraction"/>
+                    </StackPanel>
+                <Button Content="Назад" HorizontalAlignment="Right" FontSize="16" Width="100" Height="40" Click="btnBackAttraction" Margin="0,0,25,25"/>
+            </StackPanel>
+        </ScrollViewer>
+
+        <Grid x:Name="gridTickets" Visibility="Hidden" Background="White" Margin="136,70,0,0">
+            <ListView x:Name="listTickets" Margin="0,0,120,0" Background="White" BorderThickness="0"  ScrollViewer.VerticalScrollBarVisibility="Hidden">
+                <ListView.ItemTemplate>
+                    <DataTemplate>
+                        <Border BorderBrush="Black" BorderThickness="2">
+                            <StackPanel Orientation="Horizontal" Height="200">
+                                <StackPanel.Background>
+                                    <ImageBrush ImageSource="image\tickets2.png"/>
+                                </StackPanel.Background>
+                                <TextBlock x:Name="txtNameTickets" Text="{Binding Attraction.NameAttraction}" VerticalAlignment="Center"  Width="200" FontSize="20" TextTrimming="WordEllipsis" Margin="20"/>
+                                <TextBlock x:Name="txtTypeTickets" Text="{Binding TypeTickets.TypeTickets1}" VerticalAlignment="Center" Width="80" FontSize="16"/>
+                                <TextBlock x:Name="txtPriceAttraction" VerticalAlignment="Center" Text="{Binding Summ, StringFormat=0.00 руб.}" Width="100" FontSize="16"/>
+                                <Button Content="-" Height="30" Width="30" FontSize="24" Background="Transparent" Margin="5" Click="BtnTicketsMinus"/>
+                                <TextBlock x:Name="txtQuantityTickets" VerticalAlignment="Center" TextAlignment="Center" Text="{Binding Quantity}" Width="30" FontSize="16"/>
+                                <Button Content="+" Height="30" Width="30" FontSize="24" Background="Transparent"  Margin="5" Click="BtnTicketsPlus"/>
+                                <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="50,0,40,0" Click="BtnDeleteTickets">
+                                    <Image Source="image\delete.png"/>
+                                </Button>
+                            </StackPanel>
+                        </Border>
+                    </DataTemplate>
+                </ListView.ItemTemplate>
+            </ListView>
+            <StackPanel HorizontalAlignment="Right">
+                <TextBlock x:Name="txtSumm" Text="Сумма: " FontSize="18" HorizontalAlignment="Center"/>
+                <Button Content="Оплатить всё" Height="50" Width="120" Margin="5" FontSize="16" Background="Transparent" Click="BtnPuyAll"/>
+            </StackPanel>
+        </Grid>
+
+        <!--<Grid x:Name="grid_uslugi" Visibility="Visible">
+                    <Image x:Name="img_bron" Source="image/logo.png" Margin="287,10,0,71"/>
+                    <TextBlock x:Name="txt_bron"  FontSize="16" TextWrapping="Wrap" Margin="0,23,284,105" />
+                    <Button x:Name="btn_bron" Content="Забронировать" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Margin="409,236,0,0" Click="btn_bron_Click"/>
+                </Grid>
+                <Grid x:Name="grid_uslugi1" Visibility="Visible">
+                    <Image x:Name="img_bron1" Source="image/logo.png" Margin="0,0,319.6,31"/>
+                    <TextBlock x:Name="txt_bron1" Text="bababababababababbabbababababababbababab BABBABABABABABABbaab babab" FontSize="16" TextWrapping="Wrap" Margin="320,0,-0.4,0" />
+                </Grid>-->
+
+        <Border x:Name="border_bron" BorderBrush="Black" BorderThickness="2" Background="White" Margin="232,124,162,128" Visibility="Hidden">
+            <Grid x:Name="grid_bron" Margin="40.4,44.4,175.8,47.4" >
+                <StackPanel>
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Text="Дата:" FontSize="18" Width="140"/>
+                        <TextBox x:Name="txtBron_Date" Width="100"/>
+                    </StackPanel>
+                </StackPanel>
+                <TextBlock Text="Бронирование(название аттракциона)" HorizontalAlignment="Center" Margin="-30,-42,-387,41"/>
+                <TextBlock Text="Количество: " FontSize="18" Margin="0,43,-2,-45"/>
+                <TextBlock Text="Тип билета?: " FontSize="18" Margin="1,77,-3,-79"/>
+                <TextBlock Text="К оплате: " FontSize="18" Margin="58,153,-132,-155"/>
+                <Button x:Name="btn_pay" Content="Оплатить" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Click="btn_pay_Click" Margin="58,187,-58,-191"/>
+                <Button x:Name="btn_cancel" Content="Отмена" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Click="btn_cancel_Click" Margin="394,187,-357,-191"/>
+
+            </Grid>
+        </Border>
+    </Grid>
+</Window>

+ 317 - 0
mateo/MainWindow.xaml.cs

@@ -0,0 +1,317 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+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 mateo
+{
+    public partial class MainWindow : Window
+    {
+        byte[] image; //очищать!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+        int idattraction = 0;
+
+
+        public MainWindow()
+        {
+            InitializeComponent();
+            listAttraction.ItemsSource = DB.GetContext().Attraction.Where(x => x.FKStatusAttraction != 2).ToList();
+
+        }
+
+
+        #region раздел Услуги
+        private void btnUslugiClick(object sender, RoutedEventArgs e)
+        {
+            gridTickets.Visibility = Visibility.Hidden;
+        }
+
+        #endregion
+
+
+
+
+
+        private void btnProfileClick(object sender, RoutedEventArgs e)
+        {
+            gridTickets.Visibility = Visibility.Hidden;
+
+            Profile profile = new Profile();
+            profile.Show();
+            this.Close();
+        }
+
+        private void btnBronClick(object sender, RoutedEventArgs e)
+        {
+            border_bron.Visibility = Visibility.Visible;
+        }
+
+        private void btn_pay_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_first_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_cancel_Click(object sender, RoutedEventArgs e)
+        {
+            border_bron.Visibility = Visibility.Hidden;
+        }
+
+        #region соцсети
+        private void btn_whatsapp(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_gmail(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_vk(object sender, RoutedEventArgs e)
+        {
+
+        }
+        private void btn_insta(object sender, RoutedEventArgs e)
+        {
+
+        }
+        #endregion
+        private void btnLogout(object sender, RoutedEventArgs e)
+        {
+            First first = new First();
+            first.Show();
+            this.Close();
+        }
+        private void btnExit(object sender, RoutedEventArgs e)
+        {
+            Application.Current.Shutdown();
+        }
+
+        private void ViewAttraction(object sender, MouseButtonEventArgs e)
+        {
+            if (listAttraction.SelectedItem is Attraction attraction)
+            {
+                stackPriceOld.Visibility = Visibility.Visible;
+                stackPriceBaby.Visibility = Visibility.Visible;
+                stackAttraction.Visibility = Visibility.Visible;
+                txtNameAttraction.Text = attraction.NameAttraction;
+                image = attraction.ImageAttraction;
+                MemoryStream ms = new MemoryStream(image);
+                imgAttraction.Source = BitmapFrame.Create(ms);
+                txtDescriptionAttraction.Text = attraction.Description;
+                txtPriceOld.Text = String.Format("Взрослый: {0:0.00}", attraction.PriceOld);
+                txtPriceBaby.Text = String.Format("Детский: {0:0.00}", attraction.PriceBaby);
+                if (attraction.PriceOld == 0 || attraction.PriceOld == null) stackPriceOld.Visibility = Visibility.Hidden;
+                if (attraction.PriceBaby == 0 || attraction.PriceBaby == null) stackPriceBaby.Visibility = Visibility.Hidden;
+            }
+        }
+
+        private void btnBackAttraction(object sender, RoutedEventArgs e)
+        {
+            stackAttraction.Visibility = Visibility.Hidden;
+        }
+
+
+        public void Summ(decimal summ)
+        {
+            try
+            {
+                summ = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).Sum(x => x.Quantity * x.Summ);
+            }
+            catch
+            {
+                summ = 0;
+            }
+            if (summ == 0) txtSumm.Text = "Сумма: 0.00";
+
+            else txtSumm.Text = String.Format("Сумма: {0:0,00}", summ);
+        }
+
+        private void btnTickets(object sender, RoutedEventArgs e)
+        {
+            gridTickets.Visibility = Visibility.Visible;
+            listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+            decimal summ = 0;
+            Summ(summ);
+        }
+
+        private void BtnAddOldAttraction(object sender, RoutedEventArgs e)
+        {
+
+            //записываем id аттракциона по названию
+            var attr = DB.GetContext().Attraction.Where(x => x.NameAttraction == txtNameAttraction.Text).FirstOrDefault();
+            idattraction = attr.IDAttraction;
+
+            if (DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKAttraction == idattraction && x.FKStatusPuy == 2&&x.FKTypeTickets==1).FirstOrDefault() != null)
+                MessageBox.Show("Вы уже добавили такой билет, если хотите изменить количество, перейдите пожалуйста в раздел \"Билеты\"", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+            else
+            {
+
+                Tickets tickets = new Tickets
+                {
+                    FKUser = DB.Iduser,
+                    FKAttraction = idattraction,
+                    FKTypeTickets = 1,
+                    FKStatusPuy = 2,
+                    Quantity = 1,
+                    Summ = Convert.ToDecimal(attr.PriceOld),
+                    Date = DateTime.Now
+                };
+                DB.GetContext().Tickets.Add(tickets);
+                DB.GetContext().SaveChanges();
+                MessageBox.Show("Билет добавлен в раздел \"Билеты\"", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+                listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+
+            }
+        }
+
+        private void BtnAddBabyAttraction(object sender, RoutedEventArgs e)
+        {
+            var attr = DB.GetContext().Attraction.Where(x => x.NameAttraction == txtNameAttraction.Text).FirstOrDefault();
+            //записываем id аттракциона по названию
+            idattraction = attr.IDAttraction;
+
+            if (DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKAttraction == idattraction && x.FKStatusPuy == 2 && x.FKTypeTickets == 2).FirstOrDefault() != null)
+                MessageBox.Show("Вы уже добавили такой билет, если хотите изменить количество, перейдите пожалуйста в раздел \"Билеты\"", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+            else
+            {
+                Tickets tickets = new Tickets
+                {
+                    FKUser = DB.Iduser,
+                    FKAttraction = idattraction,
+                    FKTypeTickets = 2,
+                    FKStatusPuy = 2,
+                    Quantity = 1,
+                    Summ = Convert.ToDecimal(attr.PriceBaby),
+                    Date = DateTime.Now
+                };
+                DB.GetContext().Tickets.Add(tickets);
+                DB.GetContext().SaveChanges();
+                MessageBox.Show("Билет добавлен в раздел \"Билеты\"", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+                listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser==DB.Iduser&&x.FKStatusPuy==2).ToList();
+
+               
+            }
+        }
+
+        private void BtnDeleteTickets(object sender, RoutedEventArgs e)
+        {
+            if ((sender as Button).DataContext is Tickets tickets)
+            {
+                decimal summ = 0;
+                DB.GetContext().Tickets.Remove(tickets);
+                DB.GetContext().SaveChanges();
+                listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+                try
+                {
+                    summ = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).Sum(x => x.Quantity * x.Summ);
+                }
+                catch
+                {
+                    summ = 0;                    
+                }
+                if (summ == 0) txtSumm.Text = "Сумма: 0.00";
+
+                else txtSumm.Text = String.Format("Сумма: {0:0,00}", summ);
+            }
+        }
+
+        private void BtnTicketsMinus(object sender, RoutedEventArgs e)
+        {
+            if ((sender as Button).DataContext is Tickets tickets)
+            {
+                if (tickets.Quantity == 1) MessageBox.Show("Количество не может быть меньше 1", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+                else tickets.Quantity -= 1;
+                DB.GetContext().SaveChanges();
+                listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+                decimal summ = 0;
+                Summ(summ);
+
+            }
+        }
+
+        private void BtnTicketsPlus(object sender, RoutedEventArgs e)
+        {
+            if ((sender as Button).DataContext is Tickets tickets)
+            {
+                if (tickets.Quantity == 30) MessageBox.Show("Превышено количество билетов", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+                else tickets.Quantity += 1;
+                DB.GetContext().SaveChanges();
+                listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+                decimal summ = 0;
+                Summ(summ);
+
+            }
+        }
+
+        private void BtnPuyAll(object sender, RoutedEventArgs e)
+        {
+            if (DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).FirstOrDefault() == null)
+            {
+                MessageBox.Show("Вы не выбрали билет, перейдите в раздел \"Услуги\", чтобы выбрать", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+            }
+
+            else
+            {
+                decimal summ = 0;
+                Summ(summ);
+
+                var card = DB.GetContext().Users.Where(x => x.IDUsers == DB.Iduser).FirstOrDefault().FKCard;
+                var balance = DB.GetContext().Card.Where(x => x.IDCard == card).FirstOrDefault();
+
+                if (balance.Balance < summ)
+                {
+                    MessageBox.Show("У Вас недостаточно средств, пополните баланс и повторите попытку", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+                }
+                else
+                {
+                    balance.Balance -= Convert.ToDecimal(summ);
+
+                    var tickets = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+                    tickets.ForEach(x => x.FKStatusPuy = 1);
+
+
+                    History history = new History()
+                    {
+                        FKUser = DB.Iduser,
+                        DateTime = DateTime.Now,
+                        Summ = summ
+                    };
+
+                    DB.GetContext().History.Add(history);
+                    DB.GetContext().SaveChanges();
+                    MessageBox.Show("Оплата прошла успешно", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+
+                    listTickets.ItemsSource = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).ToList();
+
+                    try
+                    {
+                        summ = DB.GetContext().Tickets.Where(x => x.FKUser == DB.Iduser && x.FKStatusPuy == 2).Sum(x => x.Quantity * x.Summ);
+                    }
+                    catch
+                    {
+                        summ = 0;
+                    }
+                    if (summ == 0) txtSumm.Text = "Сумма: 0.00";
+
+                    else txtSumm.Text = String.Format("Сумма: {0:0,00}", summ);
+                };
+            }
+        }
+    }
+}

+ 42 - 0
mateo/Model1.Context.cs

@@ -0,0 +1,42 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Data.Entity;
+    using System.Data.Entity.Infrastructure;
+    
+    public partial class mateoEntities : DbContext
+    {
+        public mateoEntities()
+            : base("name=mateoEntities")
+        {
+        }
+    
+        protected override void OnModelCreating(DbModelBuilder modelBuilder)
+        {
+            throw new UnintentionalCodeFirstException();
+        }
+    
+        public virtual DbSet<Attraction> Attraction { get; set; }
+        public virtual DbSet<Card> Card { get; set; }
+        public virtual DbSet<Employees> Employees { get; set; }
+        public virtual DbSet<History> History { get; set; }
+        public virtual DbSet<Role> Role { get; set; }
+        public virtual DbSet<StatusAttraction> StatusAttraction { get; set; }
+        public virtual DbSet<StatusEmployees> StatusEmployees { get; set; }
+        public virtual DbSet<StatusPay> StatusPay { get; set; }
+        public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
+        public virtual DbSet<Tickets> Tickets { get; set; }
+        public virtual DbSet<Type> Type { get; set; }
+        public virtual DbSet<TypeTickets> TypeTickets { get; set; }
+        public virtual DbSet<Users> Users { get; set; }
+    }
+}

+ 636 - 0
mateo/Model1.Context.tt

@@ -0,0 +1,636 @@
+<#@ template language="C#" debug="false" hostspecific="true"#>
+<#@ include file="EF6.Utility.CS.ttinclude"#><#@
+ output extension=".cs"#><#
+
+const string inputFile = @"Model1.edmx";
+var textTransform = DynamicTextTransformation.Create(this);
+var code = new CodeGenerationTools(this);
+var ef = new MetadataTools(this);
+var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
+var loader = new EdmMetadataLoader(textTransform.Host, textTransform.Errors);
+var itemCollection = loader.CreateEdmItemCollection(inputFile);
+var modelNamespace = loader.GetModelNamespace(inputFile);
+var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
+
+var container = itemCollection.OfType<EntityContainer>().FirstOrDefault();
+if (container == null)
+{
+    return string.Empty;
+}
+#>
+//------------------------------------------------------------------------------
+// <auto-generated>
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
+//
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+<#
+
+var codeNamespace = code.VsNamespaceSuggestion();
+if (!String.IsNullOrEmpty(codeNamespace))
+{
+#>
+namespace <#=code.EscapeNamespace(codeNamespace)#>
+{
+<#
+    PushIndent("    ");
+}
+
+#>
+using System;
+using System.Data.Entity;
+using System.Data.Entity.Infrastructure;
+<#
+if (container.FunctionImports.Any())
+{
+#>
+using System.Data.Entity.Core.Objects;
+using System.Linq;
+<#
+}
+#>
+
+<#=Accessibility.ForType(container)#> partial class <#=code.Escape(container)#> : DbContext
+{
+    public <#=code.Escape(container)#>()
+        : base("name=<#=container.Name#>")
+    {
+<#
+if (!loader.IsLazyLoadingEnabled(container))
+{
+#>
+        this.Configuration.LazyLoadingEnabled = false;
+<#
+}
+
+foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
+{
+    // Note: the DbSet members are defined below such that the getter and
+    // setter always have the same accessibility as the DbSet definition
+    if (Accessibility.ForReadOnlyProperty(entitySet) != "public")
+    {
+#>
+        <#=codeStringGenerator.DbSetInitializer(entitySet)#>
+<#
+    }
+}
+#>
+    }
+
+    protected override void OnModelCreating(DbModelBuilder modelBuilder)
+    {
+        throw new UnintentionalCodeFirstException();
+    }
+
+<#
+    foreach (var entitySet in container.BaseEntitySets.OfType<EntitySet>())
+    {
+#>
+    <#=codeStringGenerator.DbSet(entitySet)#>
+<#
+    }
+
+    foreach (var edmFunction in container.FunctionImports)
+    {
+        WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: false);
+    }
+#>
+}
+<#
+
+if (!String.IsNullOrEmpty(codeNamespace))
+{
+    PopIndent();
+#>
+}
+<#
+}
+#>
+<#+
+
+private void WriteFunctionImport(TypeMapper typeMapper, CodeStringGenerator codeStringGenerator, EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
+{
+    if (typeMapper.IsComposable(edmFunction))
+    {
+#>
+
+    [DbFunction("<#=edmFunction.NamespaceName#>", "<#=edmFunction.Name#>")]
+    <#=codeStringGenerator.ComposableFunctionMethod(edmFunction, modelNamespace)#>
+    {
+<#+
+        codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
+#>
+        <#=codeStringGenerator.ComposableCreateQuery(edmFunction, modelNamespace)#>
+    }
+<#+
+    }
+    else
+    {
+#>
+
+    <#=codeStringGenerator.FunctionMethod(edmFunction, modelNamespace, includeMergeOption)#>
+    {
+<#+
+        codeStringGenerator.WriteFunctionParameters(edmFunction, WriteFunctionParameter);
+#>
+        <#=codeStringGenerator.ExecuteFunction(edmFunction, modelNamespace, includeMergeOption)#>
+    }
+<#+
+        if (typeMapper.GenerateMergeOptionFunction(edmFunction, includeMergeOption))
+        {
+            WriteFunctionImport(typeMapper, codeStringGenerator, edmFunction, modelNamespace, includeMergeOption: true);
+        }
+    }
+}
+
+public void WriteFunctionParameter(string name, string isNotNull, string notNullInit, string nullInit)
+{
+#>
+        var <#=name#> = <#=isNotNull#> ?
+            <#=notNullInit#> :
+            <#=nullInit#>;
+
+<#+
+}
+
+public const string TemplateId = "CSharp_DbContext_Context_EF6";
+
+public class CodeStringGenerator
+{
+    private readonly CodeGenerationTools _code;
+    private readonly TypeMapper _typeMapper;
+    private readonly MetadataTools _ef;
+
+    public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
+    {
+        ArgumentNotNull(code, "code");
+        ArgumentNotNull(typeMapper, "typeMapper");
+        ArgumentNotNull(ef, "ef");
+
+        _code = code;
+        _typeMapper = typeMapper;
+        _ef = ef;
+    }
+
+    public string Property(EdmProperty edmProperty)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2} {{ {3}get; {4}set; }}",
+            Accessibility.ForProperty(edmProperty),
+            _typeMapper.GetTypeName(edmProperty.TypeUsage),
+            _code.Escape(edmProperty),
+            _code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
+            _code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
+    }
+
+    public string NavigationProperty(NavigationProperty navProp)
+    {
+        var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2} {{ {3}get; {4}set; }}",
+            AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
+            navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
+            _code.Escape(navProp),
+            _code.SpaceAfter(Accessibility.ForGetter(navProp)),
+            _code.SpaceAfter(Accessibility.ForSetter(navProp)));
+    }
+    
+    public string AccessibilityAndVirtual(string accessibility)
+    {
+        return accessibility + (accessibility != "private" ? " virtual" : "");
+    }
+    
+    public string EntityClassOpening(EntityType entity)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1}partial class {2}{3}",
+            Accessibility.ForType(entity),
+            _code.SpaceAfter(_code.AbstractOption(entity)),
+            _code.Escape(entity),
+            _code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
+    }
+    
+    public string EnumOpening(SimpleType enumType)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} enum {1} : {2}",
+            Accessibility.ForType(enumType),
+            _code.Escape(enumType),
+            _code.Escape(_typeMapper.UnderlyingClrType(enumType)));
+        }
+    
+    public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
+    {
+        var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
+        foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
+        {
+            var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
+            var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
+            var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
+            writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
+        }
+    }
+    
+    public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} IQueryable<{1}> {2}({3})",
+            AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
+            _typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
+            _code.Escape(edmFunction),
+            string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
+    }
+    
+    public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
+            _typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
+            edmFunction.NamespaceName,
+            edmFunction.Name,
+            string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
+            _code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
+    }
+    
+    public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        var returnType = _typeMapper.GetReturnType(edmFunction);
+
+        var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
+        if (includeMergeOption)
+        {
+            paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
+        }
+
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2}({3})",
+            AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
+            returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
+            _code.Escape(edmFunction),
+            paramList);
+    }
+    
+    public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        var returnType = _typeMapper.GetReturnType(edmFunction);
+
+        var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
+        if (includeMergeOption)
+        {
+            callParams = ", mergeOption" + callParams;
+        }
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
+            returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
+            edmFunction.Name,
+            callParams);
+    }
+    
+    public string DbSet(EntitySet entitySet)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} virtual DbSet<{1}> {2} {{ get; set; }}",
+            Accessibility.ForReadOnlyProperty(entitySet),
+            _typeMapper.GetTypeName(entitySet.ElementType),
+            _code.Escape(entitySet));
+    }
+
+    public string DbSetInitializer(EntitySet entitySet)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} = Set<{1}>();",
+            _code.Escape(entitySet),
+            _typeMapper.GetTypeName(entitySet.ElementType));
+    }
+
+    public string UsingDirectives(bool inHeader, bool includeCollections = true)
+    {
+        return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
+            ? string.Format(
+                CultureInfo.InvariantCulture,
+                "{0}using System;{1}" +
+                "{2}",
+                inHeader ? Environment.NewLine : "",
+                includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
+                inHeader ? "" : Environment.NewLine)
+            : "";
+    }
+}
+
+public class TypeMapper
+{
+    private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
+
+    private readonly System.Collections.IList _errors;
+    private readonly CodeGenerationTools _code;
+    private readonly MetadataTools _ef;
+
+    public static string FixNamespaces(string typeName)
+    {
+        return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
+    }
+
+    public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
+    {
+        ArgumentNotNull(code, "code");
+        ArgumentNotNull(ef, "ef");
+        ArgumentNotNull(errors, "errors");
+
+        _code = code;
+        _ef = ef;
+        _errors = errors;
+    }
+
+    public string GetTypeName(TypeUsage typeUsage)
+    {
+        return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
+    }
+
+    public string GetTypeName(EdmType edmType)
+    {
+        return GetTypeName(edmType, isNullable: null, modelNamespace: null);
+    }
+
+    public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
+    {
+        return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
+    }
+
+    public string GetTypeName(EdmType edmType, string modelNamespace)
+    {
+        return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
+    }
+
+    public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
+    {
+        if (edmType == null)
+        {
+            return null;
+        }
+
+        var collectionType = edmType as CollectionType;
+        if (collectionType != null)
+        {
+            return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
+        }
+
+        var typeName = _code.Escape(edmType.MetadataProperties
+                                .Where(p => p.Name == ExternalTypeNameAttributeName)
+                                .Select(p => (string)p.Value)
+                                .FirstOrDefault())
+            ?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
+                _code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
+                _code.Escape(edmType));
+
+        if (edmType is StructuralType)
+        {
+            return typeName;
+        }
+
+        if (edmType is SimpleType)
+        {
+            var clrType = UnderlyingClrType(edmType);
+            if (!IsEnumType(edmType))
+            {
+                typeName = _code.Escape(clrType);
+            }
+
+            typeName = FixNamespaces(typeName);
+
+            return clrType.IsValueType && isNullable == true ?
+                String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
+                typeName;
+        }
+
+        throw new ArgumentException("edmType");
+    }
+    
+    public Type UnderlyingClrType(EdmType edmType)
+    {
+        ArgumentNotNull(edmType, "edmType");
+
+        var primitiveType = edmType as PrimitiveType;
+        if (primitiveType != null)
+        {
+            return primitiveType.ClrEquivalentType;
+        }
+
+        if (IsEnumType(edmType))
+        {
+            return GetEnumUnderlyingType(edmType).ClrEquivalentType;
+        }
+
+        return typeof(object);
+    }
+    
+    public object GetEnumMemberValue(MetadataItem enumMember)
+    {
+        ArgumentNotNull(enumMember, "enumMember");
+        
+        var valueProperty = enumMember.GetType().GetProperty("Value");
+        return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
+    }
+    
+    public string GetEnumMemberName(MetadataItem enumMember)
+    {
+        ArgumentNotNull(enumMember, "enumMember");
+        
+        var nameProperty = enumMember.GetType().GetProperty("Name");
+        return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
+    }
+
+    public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+
+        var membersProperty = enumType.GetType().GetProperty("Members");
+        return membersProperty != null 
+            ? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
+            : Enumerable.Empty<MetadataItem>();
+    }
+    
+    public bool EnumIsFlags(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+        
+        var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
+        return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
+    }
+
+    public bool IsEnumType(GlobalItem edmType)
+    {
+        ArgumentNotNull(edmType, "edmType");
+
+        return edmType.GetType().Name == "EnumType";
+    }
+
+    public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+
+        return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
+    }
+
+    public string CreateLiteral(object value)
+    {
+        if (value == null || value.GetType() != typeof(TimeSpan))
+        {
+            return _code.CreateLiteral(value);
+        }
+
+        return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
+    }
+    
+    public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
+    {
+        ArgumentNotNull(types, "types");
+        ArgumentNotNull(sourceFile, "sourceFile");
+        
+        var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
+        if (types.Any(item => !hash.Add(item)))
+        {
+            _errors.Add(
+                new CompilerError(sourceFile, -1, -1, "6023",
+                    String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
+            return false;
+        }
+        return true;
+    }
+    
+    public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
+    {
+        return GetItemsToGenerate<SimpleType>(itemCollection)
+            .Where(e => IsEnumType(e));
+    }
+    
+    public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
+    {
+        return itemCollection
+            .OfType<T>()
+            .Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
+            .OrderBy(i => i.Name);
+    }
+
+    public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
+    {
+        return itemCollection
+            .Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
+            .Select(g => GetGlobalItemName(g));
+    }
+
+    public string GetGlobalItemName(GlobalItem item)
+    {
+        if (item is EdmType)
+        {
+            return ((EdmType)item).Name;
+        }
+        else
+        {
+            return ((EntityContainer)item).Name;
+        }
+    }
+
+    public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
+    }
+
+    public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
+    }
+    
+    public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
+    }
+
+    public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
+    {
+        return type.NavigationProperties.Where(np => np.DeclaringType == type);
+    }
+    
+    public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
+    {
+        return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
+    }
+    
+    public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
+    {
+        ArgumentNotNull(edmFunction, "edmFunction");
+
+        var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
+        return returnParamsProperty == null
+            ? edmFunction.ReturnParameter
+            : ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
+    }
+
+    public bool IsComposable(EdmFunction edmFunction)
+    {
+        ArgumentNotNull(edmFunction, "edmFunction");
+
+        var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
+        return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
+    }
+
+    public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
+    {
+        return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
+    }
+
+    public TypeUsage GetReturnType(EdmFunction edmFunction)
+    {
+        var returnParam = GetReturnParameter(edmFunction);
+        return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
+    }
+    
+    public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
+    {
+        var returnType = GetReturnType(edmFunction);
+        return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
+    }
+}
+
+public static void ArgumentNotNull<T>(T arg, string name) where T : class
+{
+    if (arg == null)
+    {
+        throw new ArgumentNullException(name);
+    }
+}
+#>

+ 10 - 0
mateo/Model1.Designer.cs

@@ -0,0 +1,10 @@
+// Создание кода T4 для модели "C:\Users\polin\OneDrive\Рабочий стол\mateo\mateo\Model1.edmx" включено. 
+// Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
+// на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
+// открыта в конструкторе.
+
+// Если не сформированы контекст и классы сущности, возможная причина в том, что вы создали пустую модель, но
+// еще не выбрали версию Entity Framework для использования. Чтобы сформировать класс контекста и классы сущностей
+// для своей модели, откройте модель в конструкторе, щелкните правой кнопкой область конструктора и
+// выберите "Обновить модель из базы данных", "Сформировать базу данных из модели" или "Добавить элемент формирования
+// кода...".

+ 9 - 0
mateo/Model1.cs

@@ -0,0 +1,9 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+

+ 828 - 0
mateo/Model1.edmx

@@ -0,0 +1,828 @@
+<?xml version="1.0" encoding="utf-8"?>
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
+  <!-- EF Runtime content -->
+  <edmx:Runtime>
+    <!-- SSDL content -->
+    <edmx:StorageModels>
+      <Schema Namespace="Хранилище mateoModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+        <EntityType Name="Attraction">
+          <Key>
+            <PropertyRef Name="IDAttraction" />
+          </Key>
+          <Property Name="IDAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="NameAttraction" Type="nvarchar" MaxLength="100" Nullable="false" />
+          <Property Name="Description" Type="nvarchar" MaxLength="400" />
+          <Property Name="PriceOld" Type="money" />
+          <Property Name="PriceBaby" Type="money" />
+          <Property Name="QuantityAttraction" Type="int" Nullable="false" />
+          <Property Name="ImageAttraction" Type="varbinary(max)" Nullable="false" />
+          <Property Name="FKEmployees" Type="int" Nullable="false" />
+          <Property Name="FKStatusAttraction" Type="int" Nullable="false" />
+          <Property Name="FKType" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Card">
+          <Key>
+            <PropertyRef Name="IDCard" />
+          </Key>
+          <Property Name="IDCard" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="NumberCard" Type="nvarchar" MaxLength="19" Nullable="false" />
+          <Property Name="Balance" Type="money" />
+        </EntityType>
+        <EntityType Name="Employees">
+          <Key>
+            <PropertyRef Name="IDEmployees" />
+          </Key>
+          <Property Name="IDEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+          <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+          <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="FKRole" Type="int" Nullable="false" />
+          <Property Name="FKStatusEmployees" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="History">
+          <Key>
+            <PropertyRef Name="IDHistory" />
+          </Key>
+          <Property Name="IDHistory" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FKUser" Type="int" Nullable="false" />
+          <Property Name="DateTime" Type="datetime" Nullable="false" />
+          <Property Name="Summ" Type="money" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Role">
+          <Key>
+            <PropertyRef Name="IDRole" />
+          </Key>
+          <Property Name="IDRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Role" Type="nvarchar" MaxLength="25" Nullable="false" />
+        </EntityType>
+        <EntityType Name="StatusAttraction">
+          <Key>
+            <PropertyRef Name="IDStatusAttraction" />
+          </Key>
+          <Property Name="IDStatusAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="StatusAttraction" Type="nvarchar" MaxLength="25" Nullable="false" />
+        </EntityType>
+        <EntityType Name="StatusEmployees">
+          <Key>
+            <PropertyRef Name="IDStatusEmployees" />
+          </Key>
+          <Property Name="IDStatusEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="StatusEmployees" Type="nvarchar" MaxLength="25" Nullable="false" />
+        </EntityType>
+        <EntityType Name="StatusPay">
+          <Key>
+            <PropertyRef Name="IDStatusPay" />
+          </Key>
+          <Property Name="IDStatusPay" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="StatusPay" Type="nvarchar" MaxLength="20" Nullable="false" />
+        </EntityType>
+        <EntityType Name="sysdiagrams">
+          <Key>
+            <PropertyRef Name="diagram_id" />
+          </Key>
+          <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
+          <Property Name="principal_id" Type="int" Nullable="false" />
+          <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="version" Type="int" />
+          <Property Name="definition" Type="varbinary(max)" />
+        </EntityType>
+        <EntityType Name="Tickets">
+          <Key>
+            <PropertyRef Name="IDTickets" />
+          </Key>
+          <Property Name="IDTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FKUser" Type="int" Nullable="false" />
+          <Property Name="FKAttraction" Type="int" Nullable="false" />
+          <Property Name="FKTypeTickets" Type="int" Nullable="false" />
+          <Property Name="FKStatusPuy" Type="int" Nullable="false" />
+          <Property Name="Quantity" Type="int" Nullable="false" />
+          <Property Name="Summ" Type="money" Nullable="false" />
+          <Property Name="Date" Type="date" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Type">
+          <Key>
+            <PropertyRef Name="IDType" />
+          </Key>
+          <Property Name="IDType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Type" Type="nvarchar" MaxLength="20" Nullable="false" />
+        </EntityType>
+        <EntityType Name="TypeTickets">
+          <Key>
+            <PropertyRef Name="IDTypeTickets" />
+          </Key>
+          <Property Name="IDTypeTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="TypeTickets" Type="nvarchar" MaxLength="20" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Users">
+          <Key>
+            <PropertyRef Name="IDUsers" />
+          </Key>
+          <Property Name="IDUsers" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+          <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+          <Property Name="Image" Type="varbinary(max)" />
+          <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+          <Property Name="FKCard" Type="int" Nullable="false" />
+        </EntityType>
+        <Association Name="FK_Attraction_Employees">
+          <End Role="Employees" Type="Self.Employees" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Employees">
+              <PropertyRef Name="IDEmployees" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKEmployees" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Attraction_StatusAttraction">
+          <End Role="StatusAttraction" Type="Self.StatusAttraction" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusAttraction">
+              <PropertyRef Name="IDStatusAttraction" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKStatusAttraction" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Attraction_Type">
+          <End Role="Type" Type="Self.Type" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Type">
+              <PropertyRef Name="IDType" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Employees_Role">
+          <End Role="Role" Type="Self.Role" Multiplicity="1" />
+          <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Role">
+              <PropertyRef Name="IDRole" />
+            </Principal>
+            <Dependent Role="Employees">
+              <PropertyRef Name="FKRole" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Employees_StatusEmployees">
+          <End Role="StatusEmployees" Type="Self.StatusEmployees" Multiplicity="1" />
+          <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusEmployees">
+              <PropertyRef Name="IDStatusEmployees" />
+            </Principal>
+            <Dependent Role="Employees">
+              <PropertyRef Name="FKStatusEmployees" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_History_Users">
+          <End Role="Users" Type="Self.Users" Multiplicity="1" />
+          <End Role="History" Type="Self.History" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Users">
+              <PropertyRef Name="IDUsers" />
+            </Principal>
+            <Dependent Role="History">
+              <PropertyRef Name="FKUser" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_Attraction">
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Attraction">
+              <PropertyRef Name="IDAttraction" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKAttraction" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_StatusPay">
+          <End Role="StatusPay" Type="Self.StatusPay" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusPay">
+              <PropertyRef Name="IDStatusPay" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKStatusPuy" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_TypeTickets">
+          <End Role="TypeTickets" Type="Self.TypeTickets" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TypeTickets">
+              <PropertyRef Name="IDTypeTickets" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKTypeTickets" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_Users">
+          <End Role="Users" Type="Self.Users" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Users">
+              <PropertyRef Name="IDUsers" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKUser" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Users_Card">
+          <End Role="Card" Type="Self.Card" Multiplicity="1" />
+          <End Role="Users" Type="Self.Users" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Card">
+              <PropertyRef Name="IDCard" />
+            </Principal>
+            <Dependent Role="Users">
+              <PropertyRef Name="FKCard" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="Хранилище mateoModelContainer">
+          <EntitySet Name="Attraction" EntityType="Self.Attraction" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="History" EntityType="Self.History" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="StatusAttraction" EntityType="Self.StatusAttraction" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="StatusEmployees" EntityType="Self.StatusEmployees" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="StatusPay" EntityType="Self.StatusPay" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Tickets" EntityType="Self.Tickets" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="TypeTickets" EntityType="Self.TypeTickets" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
+          <AssociationSet Name="FK_Attraction_Employees" Association="Self.FK_Attraction_Employees">
+            <End Role="Employees" EntitySet="Employees" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Attraction_StatusAttraction" Association="Self.FK_Attraction_StatusAttraction">
+            <End Role="StatusAttraction" EntitySet="StatusAttraction" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+            <End Role="Type" EntitySet="Type" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+            <End Role="Role" EntitySet="Role" />
+            <End Role="Employees" EntitySet="Employees" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Employees_StatusEmployees" Association="Self.FK_Employees_StatusEmployees">
+            <End Role="StatusEmployees" EntitySet="StatusEmployees" />
+            <End Role="Employees" EntitySet="Employees" />
+          </AssociationSet>
+          <AssociationSet Name="FK_History_Users" Association="Self.FK_History_Users">
+            <End Role="Users" EntitySet="Users" />
+            <End Role="History" EntitySet="History" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_Attraction" Association="Self.FK_Tickets_Attraction">
+            <End Role="Attraction" EntitySet="Attraction" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_StatusPay" Association="Self.FK_Tickets_StatusPay">
+            <End Role="StatusPay" EntitySet="StatusPay" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_TypeTickets" Association="Self.FK_Tickets_TypeTickets">
+            <End Role="TypeTickets" EntitySet="TypeTickets" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
+            <End Role="Users" EntitySet="Users" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+            <End Role="Card" EntitySet="Card" />
+            <End Role="Users" EntitySet="Users" />
+          </AssociationSet>
+        </EntityContainer>
+      </Schema>
+    </edmx:StorageModels>
+    <!-- CSDL content -->
+    <edmx:ConceptualModels>
+      <Schema Namespace="mateoModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+        <EntityType Name="Attraction">
+          <Key>
+            <PropertyRef Name="IDAttraction" />
+          </Key>
+          <Property Name="IDAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="NameAttraction" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Description" Type="String" MaxLength="400" FixedLength="false" Unicode="true" />
+          <Property Name="PriceOld" Type="Decimal" Precision="19" Scale="4" />
+          <Property Name="PriceBaby" Type="Decimal" Precision="19" Scale="4" />
+          <Property Name="QuantityAttraction" Type="Int32" Nullable="false" />
+          <Property Name="ImageAttraction" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
+          <Property Name="FKEmployees" Type="Int32" Nullable="false" />
+          <Property Name="FKStatusAttraction" Type="Int32" Nullable="false" />
+          <Property Name="FKType" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Employees" Relationship="Self.FK_Attraction_Employees" FromRole="Attraction" ToRole="Employees" />
+          <NavigationProperty Name="StatusAttraction" Relationship="Self.FK_Attraction_StatusAttraction" FromRole="Attraction" ToRole="StatusAttraction" />
+          <NavigationProperty Name="Type" Relationship="Self.FK_Attraction_Type" FromRole="Attraction" ToRole="Type" />
+          <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_Attraction" FromRole="Attraction" ToRole="Tickets" />
+        </EntityType>
+        <EntityType Name="Card">
+          <Key>
+            <PropertyRef Name="IDCard" />
+          </Key>
+          <Property Name="IDCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="NumberCard" Type="String" MaxLength="19" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Balance" Type="Decimal" Precision="19" Scale="4" />
+          <NavigationProperty Name="Users" Relationship="Self.FK_Users_Card" FromRole="Card" ToRole="Users" />
+        </EntityType>
+        <EntityType Name="Employees">
+          <Key>
+            <PropertyRef Name="IDEmployees" />
+          </Key>
+          <Property Name="IDEmployees" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+          <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FKRole" Type="Int32" Nullable="false" />
+          <Property Name="FKStatusEmployees" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_Employees" FromRole="Employees" ToRole="Attraction" />
+          <NavigationProperty Name="Role" Relationship="Self.FK_Employees_Role" FromRole="Employees" ToRole="Role" />
+          <NavigationProperty Name="StatusEmployees" Relationship="Self.FK_Employees_StatusEmployees" FromRole="Employees" ToRole="StatusEmployees" />
+        </EntityType>
+        <EntityType Name="History">
+          <Key>
+            <PropertyRef Name="IDHistory" />
+          </Key>
+          <Property Name="IDHistory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FKUser" Type="Int32" Nullable="false" />
+          <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
+          <Property Name="Summ" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
+          <NavigationProperty Name="Users" Relationship="Self.FK_History_Users" FromRole="History" ToRole="Users" />
+        </EntityType>
+        <EntityType Name="Role">
+          <Key>
+            <PropertyRef Name="IDRole" />
+          </Key>
+          <Property Name="IDRole" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Role1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Role" FromRole="Role" ToRole="Employees" />
+        </EntityType>
+        <EntityType Name="StatusAttraction">
+          <Key>
+            <PropertyRef Name="IDStatusAttraction" />
+          </Key>
+          <Property Name="IDStatusAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="StatusAttraction1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_StatusAttraction" FromRole="StatusAttraction" ToRole="Attraction" />
+        </EntityType>
+        <EntityType Name="StatusEmployees">
+          <Key>
+            <PropertyRef Name="IDStatusEmployees" />
+          </Key>
+          <Property Name="IDStatusEmployees" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="StatusEmployees1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_StatusEmployees" FromRole="StatusEmployees" ToRole="Employees" />
+        </EntityType>
+        <EntityType Name="StatusPay">
+          <Key>
+            <PropertyRef Name="IDStatusPay" />
+          </Key>
+          <Property Name="IDStatusPay" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="StatusPay1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_StatusPay" FromRole="StatusPay" ToRole="Tickets" />
+        </EntityType>
+        <EntityType Name="sysdiagrams">
+          <Key>
+            <PropertyRef Name="diagram_id" />
+          </Key>
+          <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="principal_id" Type="Int32" Nullable="false" />
+          <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="version" Type="Int32" />
+          <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
+        </EntityType>
+        <EntityType Name="Tickets">
+          <Key>
+            <PropertyRef Name="IDTickets" />
+          </Key>
+          <Property Name="IDTickets" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FKUser" Type="Int32" Nullable="false" />
+          <Property Name="FKAttraction" Type="Int32" Nullable="false" />
+          <Property Name="FKTypeTickets" Type="Int32" Nullable="false" />
+          <Property Name="FKStatusPuy" Type="Int32" Nullable="false" />
+          <Property Name="Quantity" Type="Int32" Nullable="false" />
+          <Property Name="Summ" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
+          <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
+          <NavigationProperty Name="Attraction" Relationship="Self.FK_Tickets_Attraction" FromRole="Tickets" ToRole="Attraction" />
+          <NavigationProperty Name="StatusPay" Relationship="Self.FK_Tickets_StatusPay" FromRole="Tickets" ToRole="StatusPay" />
+          <NavigationProperty Name="TypeTickets" Relationship="Self.FK_Tickets_TypeTickets" FromRole="Tickets" ToRole="TypeTickets" />
+          <NavigationProperty Name="Users" Relationship="Self.FK_Tickets_Users" FromRole="Tickets" ToRole="Users" />
+        </EntityType>
+        <EntityType Name="Type">
+          <Key>
+            <PropertyRef Name="IDType" />
+          </Key>
+          <Property Name="IDType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Type1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_Type" FromRole="Type" ToRole="Attraction" />
+        </EntityType>
+        <EntityType Name="TypeTickets">
+          <Key>
+            <PropertyRef Name="IDTypeTickets" />
+          </Key>
+          <Property Name="IDTypeTickets" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="TypeTickets1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_TypeTickets" FromRole="TypeTickets" ToRole="Tickets" />
+        </EntityType>
+        <EntityType Name="Users">
+          <Key>
+            <PropertyRef Name="IDUsers" />
+          </Key>
+          <Property Name="IDUsers" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+          <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
+          <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FKCard" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Card" Relationship="Self.FK_Users_Card" FromRole="Users" ToRole="Card" />
+          <NavigationProperty Name="History" Relationship="Self.FK_History_Users" FromRole="Users" ToRole="History" />
+          <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_Users" FromRole="Users" ToRole="Tickets" />
+        </EntityType>
+        <Association Name="FK_Attraction_Employees">
+          <End Role="Employees" Type="Self.Employees" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Employees">
+              <PropertyRef Name="IDEmployees" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKEmployees" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Attraction_StatusAttraction">
+          <End Role="StatusAttraction" Type="Self.StatusAttraction" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusAttraction">
+              <PropertyRef Name="IDStatusAttraction" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKStatusAttraction" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Attraction_Type">
+          <End Role="Type" Type="Self.Type" Multiplicity="1" />
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Type">
+              <PropertyRef Name="IDType" />
+            </Principal>
+            <Dependent Role="Attraction">
+              <PropertyRef Name="FKType" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_Attraction">
+          <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Attraction">
+              <PropertyRef Name="IDAttraction" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKAttraction" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Users_Card">
+          <End Role="Card" Type="Self.Card" Multiplicity="1" />
+          <End Role="Users" Type="Self.Users" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Card">
+              <PropertyRef Name="IDCard" />
+            </Principal>
+            <Dependent Role="Users">
+              <PropertyRef Name="FKCard" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Employees_Role">
+          <End Role="Role" Type="Self.Role" Multiplicity="1" />
+          <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Role">
+              <PropertyRef Name="IDRole" />
+            </Principal>
+            <Dependent Role="Employees">
+              <PropertyRef Name="FKRole" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Employees_StatusEmployees">
+          <End Role="StatusEmployees" Type="Self.StatusEmployees" Multiplicity="1" />
+          <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusEmployees">
+              <PropertyRef Name="IDStatusEmployees" />
+            </Principal>
+            <Dependent Role="Employees">
+              <PropertyRef Name="FKStatusEmployees" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_History_Users">
+          <End Role="Users" Type="Self.Users" Multiplicity="1" />
+          <End Role="History" Type="Self.History" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Users">
+              <PropertyRef Name="IDUsers" />
+            </Principal>
+            <Dependent Role="History">
+              <PropertyRef Name="FKUser" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_StatusPay">
+          <End Role="StatusPay" Type="Self.StatusPay" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="StatusPay">
+              <PropertyRef Name="IDStatusPay" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKStatusPuy" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_TypeTickets">
+          <End Role="TypeTickets" Type="Self.TypeTickets" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="TypeTickets">
+              <PropertyRef Name="IDTypeTickets" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKTypeTickets" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Tickets_Users">
+          <End Role="Users" Type="Self.Users" Multiplicity="1" />
+          <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Users">
+              <PropertyRef Name="IDUsers" />
+            </Principal>
+            <Dependent Role="Tickets">
+              <PropertyRef Name="FKUser" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="mateoEntities" annotation:LazyLoadingEnabled="true">
+          <EntitySet Name="Attraction" EntityType="Self.Attraction" />
+          <EntitySet Name="Card" EntityType="Self.Card" />
+          <EntitySet Name="Employees" EntityType="Self.Employees" />
+          <EntitySet Name="History" EntityType="Self.History" />
+          <EntitySet Name="Role" EntityType="Self.Role" />
+          <EntitySet Name="StatusAttraction" EntityType="Self.StatusAttraction" />
+          <EntitySet Name="StatusEmployees" EntityType="Self.StatusEmployees" />
+          <EntitySet Name="StatusPay" EntityType="Self.StatusPay" />
+          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+          <EntitySet Name="Tickets" EntityType="Self.Tickets" />
+          <EntitySet Name="Type" EntityType="Self.Type" />
+          <EntitySet Name="TypeTickets" EntityType="Self.TypeTickets" />
+          <EntitySet Name="Users" EntityType="Self.Users" />
+          <AssociationSet Name="FK_Attraction_Employees" Association="Self.FK_Attraction_Employees">
+            <End Role="Employees" EntitySet="Employees" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Attraction_StatusAttraction" Association="Self.FK_Attraction_StatusAttraction">
+            <End Role="StatusAttraction" EntitySet="StatusAttraction" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+            <End Role="Type" EntitySet="Type" />
+            <End Role="Attraction" EntitySet="Attraction" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_Attraction" Association="Self.FK_Tickets_Attraction">
+            <End Role="Attraction" EntitySet="Attraction" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+            <End Role="Card" EntitySet="Card" />
+            <End Role="Users" EntitySet="Users" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+            <End Role="Role" EntitySet="Role" />
+            <End Role="Employees" EntitySet="Employees" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Employees_StatusEmployees" Association="Self.FK_Employees_StatusEmployees">
+            <End Role="StatusEmployees" EntitySet="StatusEmployees" />
+            <End Role="Employees" EntitySet="Employees" />
+          </AssociationSet>
+          <AssociationSet Name="FK_History_Users" Association="Self.FK_History_Users">
+            <End Role="Users" EntitySet="Users" />
+            <End Role="History" EntitySet="History" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_StatusPay" Association="Self.FK_Tickets_StatusPay">
+            <End Role="StatusPay" EntitySet="StatusPay" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_TypeTickets" Association="Self.FK_Tickets_TypeTickets">
+            <End Role="TypeTickets" EntitySet="TypeTickets" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
+            <End Role="Users" EntitySet="Users" />
+            <End Role="Tickets" EntitySet="Tickets" />
+          </AssociationSet>
+        </EntityContainer>
+      </Schema>
+    </edmx:ConceptualModels>
+    <!-- C-S mapping content -->
+    <edmx:Mappings>
+      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+        <EntityContainerMapping StorageEntityContainer="Хранилище mateoModelContainer" CdmEntityContainer="mateoEntities">
+          <EntitySetMapping Name="Attraction">
+            <EntityTypeMapping TypeName="mateoModel.Attraction">
+              <MappingFragment StoreEntitySet="Attraction">
+                <ScalarProperty Name="IDAttraction" ColumnName="IDAttraction" />
+                <ScalarProperty Name="NameAttraction" ColumnName="NameAttraction" />
+                <ScalarProperty Name="Description" ColumnName="Description" />
+                <ScalarProperty Name="PriceOld" ColumnName="PriceOld" />
+                <ScalarProperty Name="PriceBaby" ColumnName="PriceBaby" />
+                <ScalarProperty Name="QuantityAttraction" ColumnName="QuantityAttraction" />
+                <ScalarProperty Name="ImageAttraction" ColumnName="ImageAttraction" />
+                <ScalarProperty Name="FKEmployees" ColumnName="FKEmployees" />
+                <ScalarProperty Name="FKStatusAttraction" ColumnName="FKStatusAttraction" />
+                <ScalarProperty Name="FKType" ColumnName="FKType" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Card">
+            <EntityTypeMapping TypeName="mateoModel.Card">
+              <MappingFragment StoreEntitySet="Card">
+                <ScalarProperty Name="IDCard" ColumnName="IDCard" />
+                <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
+                <ScalarProperty Name="Balance" ColumnName="Balance" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Employees">
+            <EntityTypeMapping TypeName="mateoModel.Employees">
+              <MappingFragment StoreEntitySet="Employees">
+                <ScalarProperty Name="IDEmployees" ColumnName="IDEmployees" />
+                <ScalarProperty Name="LastName" ColumnName="LastName" />
+                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+                <ScalarProperty Name="Login" ColumnName="Login" />
+                <ScalarProperty Name="Password" ColumnName="Password" />
+                <ScalarProperty Name="FKRole" ColumnName="FKRole" />
+                <ScalarProperty Name="FKStatusEmployees" ColumnName="FKStatusEmployees" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="History">
+            <EntityTypeMapping TypeName="mateoModel.History">
+              <MappingFragment StoreEntitySet="History">
+                <ScalarProperty Name="IDHistory" ColumnName="IDHistory" />
+                <ScalarProperty Name="FKUser" ColumnName="FKUser" />
+                <ScalarProperty Name="DateTime" ColumnName="DateTime" />
+                <ScalarProperty Name="Summ" ColumnName="Summ" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Role">
+            <EntityTypeMapping TypeName="mateoModel.Role">
+              <MappingFragment StoreEntitySet="Role">
+                <ScalarProperty Name="IDRole" ColumnName="IDRole" />
+                <ScalarProperty Name="Role1" ColumnName="Role" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="StatusAttraction">
+            <EntityTypeMapping TypeName="mateoModel.StatusAttraction">
+              <MappingFragment StoreEntitySet="StatusAttraction">
+                <ScalarProperty Name="IDStatusAttraction" ColumnName="IDStatusAttraction" />
+                <ScalarProperty Name="StatusAttraction1" ColumnName="StatusAttraction" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="StatusEmployees">
+            <EntityTypeMapping TypeName="mateoModel.StatusEmployees">
+              <MappingFragment StoreEntitySet="StatusEmployees">
+                <ScalarProperty Name="IDStatusEmployees" ColumnName="IDStatusEmployees" />
+                <ScalarProperty Name="StatusEmployees1" ColumnName="StatusEmployees" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="StatusPay">
+            <EntityTypeMapping TypeName="mateoModel.StatusPay">
+              <MappingFragment StoreEntitySet="StatusPay">
+                <ScalarProperty Name="IDStatusPay" ColumnName="IDStatusPay" />
+                <ScalarProperty Name="StatusPay1" ColumnName="StatusPay" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="sysdiagrams">
+            <EntityTypeMapping TypeName="mateoModel.sysdiagrams">
+              <MappingFragment StoreEntitySet="sysdiagrams">
+                <ScalarProperty Name="name" ColumnName="name" />
+                <ScalarProperty Name="principal_id" ColumnName="principal_id" />
+                <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
+                <ScalarProperty Name="version" ColumnName="version" />
+                <ScalarProperty Name="definition" ColumnName="definition" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Tickets">
+            <EntityTypeMapping TypeName="mateoModel.Tickets">
+              <MappingFragment StoreEntitySet="Tickets">
+                <ScalarProperty Name="IDTickets" ColumnName="IDTickets" />
+                <ScalarProperty Name="FKUser" ColumnName="FKUser" />
+                <ScalarProperty Name="FKAttraction" ColumnName="FKAttraction" />
+                <ScalarProperty Name="FKTypeTickets" ColumnName="FKTypeTickets" />
+                <ScalarProperty Name="FKStatusPuy" ColumnName="FKStatusPuy" />
+                <ScalarProperty Name="Quantity" ColumnName="Quantity" />
+                <ScalarProperty Name="Summ" ColumnName="Summ" />
+                <ScalarProperty Name="Date" ColumnName="Date" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Type">
+            <EntityTypeMapping TypeName="mateoModel.Type">
+              <MappingFragment StoreEntitySet="Type">
+                <ScalarProperty Name="IDType" ColumnName="IDType" />
+                <ScalarProperty Name="Type1" ColumnName="Type" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="TypeTickets">
+            <EntityTypeMapping TypeName="mateoModel.TypeTickets">
+              <MappingFragment StoreEntitySet="TypeTickets">
+                <ScalarProperty Name="IDTypeTickets" ColumnName="IDTypeTickets" />
+                <ScalarProperty Name="TypeTickets1" ColumnName="TypeTickets" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Users">
+            <EntityTypeMapping TypeName="mateoModel.Users">
+              <MappingFragment StoreEntitySet="Users">
+                <ScalarProperty Name="IDUsers" ColumnName="IDUsers" />
+                <ScalarProperty Name="LastName" ColumnName="LastName" />
+                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+                <ScalarProperty Name="Image" ColumnName="Image" />
+                <ScalarProperty Name="Login" ColumnName="Login" />
+                <ScalarProperty Name="Password" ColumnName="Password" />
+                <ScalarProperty Name="FKCard" ColumnName="FKCard" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+        </EntityContainerMapping>
+      </Mapping>
+    </edmx:Mappings>
+  </edmx:Runtime>
+  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
+  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
+    <Connection>
+      <DesignerInfoPropertySet>
+        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
+      </DesignerInfoPropertySet>
+    </Connection>
+    <Options>
+      <DesignerInfoPropertySet>
+        <DesignerProperty Name="ValidateOnBuild" Value="true" />
+        <DesignerProperty Name="EnablePluralization" Value="false" />
+        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
+        <DesignerProperty Name="UseLegacyProvider" Value="false" />
+        <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
+      </DesignerInfoPropertySet>
+    </Options>
+    <!-- Diagram content (shape and connector positions) -->
+    <Diagrams></Diagrams>
+  </Designer>
+</edmx:Edmx>

+ 35 - 0
mateo/Model1.edmx.diagram

@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
+ <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
+  <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
+    <!-- Diagram content (shape and connector positions) -->
+    <edmx:Diagrams>
+      <Diagram DiagramId="2a567754dff04692a843f804b51ef8e0" Name="Diagram1">
+        <EntityTypeShape EntityType="mateoModel.Attraction" Width="1.5" PointX="5.25" PointY="1" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Card" Width="1.5" PointX="3" PointY="12.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Employees" Width="1.5" PointX="3" PointY="1.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.History" Width="1.5" PointX="7.5" PointY="12.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Role" Width="1.5" PointX="0.75" PointY="2.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.StatusAttraction" Width="1.5" PointX="3" PointY="5.875" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.StatusEmployees" Width="1.5" PointX="0.75" PointY="6.125" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.StatusPay" Width="1.5" PointX="5.25" PointY="6.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.sysdiagrams" Width="1.5" PointX="7.75" PointY="5.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Tickets" Width="1.5" PointX="7.5" PointY="1.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Type" Width="1.5" PointX="3" PointY="9.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.TypeTickets" Width="1.5" PointX="5.25" PointY="8.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="mateoModel.Users" Width="1.5" PointX="5.25" PointY="11.875" IsExpanded="true" />
+        <AssociationConnector Association="mateoModel.FK_Attraction_Employees" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Attraction_StatusAttraction" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Attraction_Type" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Tickets_Attraction" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Users_Card" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Employees_Role" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Employees_StatusEmployees" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_History_Users" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Tickets_StatusPay" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Tickets_TypeTickets" ManuallyRouted="false" />
+        <AssociationConnector Association="mateoModel.FK_Tickets_Users" ManuallyRouted="false" />
+      </Diagram>
+    </edmx:Diagrams>
+  </edmx:Designer>
+</edmx:Edmx>

+ 733 - 0
mateo/Model1.tt

@@ -0,0 +1,733 @@
+<#@ template language="C#" debug="false" hostspecific="true"#>
+<#@ include file="EF6.Utility.CS.ttinclude"#><#@ 
+ output extension=".cs"#><#
+
+const string inputFile = @"Model1.edmx";
+var textTransform = DynamicTextTransformation.Create(this);
+var code = new CodeGenerationTools(this);
+var ef = new MetadataTools(this);
+var typeMapper = new TypeMapper(code, ef, textTransform.Errors);
+var	fileManager = EntityFrameworkTemplateFileManager.Create(this);
+var itemCollection = new EdmMetadataLoader(textTransform.Host, textTransform.Errors).CreateEdmItemCollection(inputFile);
+var codeStringGenerator = new CodeStringGenerator(code, typeMapper, ef);
+
+if (!typeMapper.VerifyCaseInsensitiveTypeUniqueness(typeMapper.GetAllGlobalItems(itemCollection), inputFile))
+{
+    return string.Empty;
+}
+
+WriteHeader(codeStringGenerator, fileManager);
+
+foreach (var entity in typeMapper.GetItemsToGenerate<EntityType>(itemCollection))
+{
+    fileManager.StartNewFile(entity.Name + ".cs");
+    BeginNamespace(code);
+#>
+<#=codeStringGenerator.UsingDirectives(inHeader: false)#>
+<#=codeStringGenerator.EntityClassOpening(entity)#>
+{
+<#
+    var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(entity);
+    var collectionNavigationProperties = typeMapper.GetCollectionNavigationProperties(entity);
+    var complexProperties = typeMapper.GetComplexProperties(entity);
+
+    if (propertiesWithDefaultValues.Any() || collectionNavigationProperties.Any() || complexProperties.Any())
+    {
+#>
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public <#=code.Escape(entity)#>()
+    {
+<#
+        foreach (var edmProperty in propertiesWithDefaultValues)
+        {
+#>
+        this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
+<#
+        }
+
+        foreach (var navigationProperty in collectionNavigationProperties)
+        {
+#>
+        this.<#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>();
+<#
+        }
+
+        foreach (var complexProperty in complexProperties)
+        {
+#>
+        this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
+<#
+        }
+#>
+    }
+
+<#
+    }
+
+    var simpleProperties = typeMapper.GetSimpleProperties(entity);
+    if (simpleProperties.Any())
+    {
+        foreach (var edmProperty in simpleProperties)
+        {
+#>
+    <#=codeStringGenerator.Property(edmProperty)#>
+<#
+        }
+    }
+
+    if (complexProperties.Any())
+    {
+#>
+
+<#
+        foreach(var complexProperty in complexProperties)
+        {
+#>
+    <#=codeStringGenerator.Property(complexProperty)#>
+<#
+        }
+    }
+
+    var navigationProperties = typeMapper.GetNavigationProperties(entity);
+    if (navigationProperties.Any())
+    {
+#>
+
+<#
+        foreach (var navigationProperty in navigationProperties)
+        {
+            if (navigationProperty.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many)
+            {
+#>
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+<#
+            }
+#>
+    <#=codeStringGenerator.NavigationProperty(navigationProperty)#>
+<#
+        }
+    }
+#>
+}
+<#
+    EndNamespace(code);
+}
+
+foreach (var complex in typeMapper.GetItemsToGenerate<ComplexType>(itemCollection))
+{
+    fileManager.StartNewFile(complex.Name + ".cs");
+    BeginNamespace(code);
+#>
+<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
+<#=Accessibility.ForType(complex)#> partial class <#=code.Escape(complex)#>
+{
+<#
+    var complexProperties = typeMapper.GetComplexProperties(complex);
+    var propertiesWithDefaultValues = typeMapper.GetPropertiesWithDefaultValues(complex);
+
+    if (propertiesWithDefaultValues.Any() || complexProperties.Any())
+    {
+#>
+    public <#=code.Escape(complex)#>()
+    {
+<#
+        foreach (var edmProperty in propertiesWithDefaultValues)
+        {
+#>
+        this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
+<#
+        }
+
+        foreach (var complexProperty in complexProperties)
+        {
+#>
+        this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
+<#
+        }
+#>
+    }
+
+<#
+    }
+
+    var simpleProperties = typeMapper.GetSimpleProperties(complex);
+    if (simpleProperties.Any())
+    {
+        foreach(var edmProperty in simpleProperties)
+        {
+#>
+    <#=codeStringGenerator.Property(edmProperty)#>
+<#
+        }
+    }
+
+    if (complexProperties.Any())
+    {
+#>
+
+<#
+        foreach(var edmProperty in complexProperties)
+        {
+#>
+    <#=codeStringGenerator.Property(edmProperty)#>
+<#
+        }
+    }
+#>
+}
+<#
+    EndNamespace(code);
+}
+
+foreach (var enumType in typeMapper.GetEnumItemsToGenerate(itemCollection))
+{
+    fileManager.StartNewFile(enumType.Name + ".cs");
+    BeginNamespace(code);
+#>
+<#=codeStringGenerator.UsingDirectives(inHeader: false, includeCollections: false)#>
+<#
+    if (typeMapper.EnumIsFlags(enumType))
+    {
+#>
+[Flags]
+<#
+    }
+#>
+<#=codeStringGenerator.EnumOpening(enumType)#>
+{
+<#
+    var foundOne = false;
+    
+    foreach (MetadataItem member in typeMapper.GetEnumMembers(enumType))
+    {
+        foundOne = true;
+#>
+    <#=code.Escape(typeMapper.GetEnumMemberName(member))#> = <#=typeMapper.GetEnumMemberValue(member)#>,
+<#
+    }
+
+    if (foundOne)
+    {
+        this.GenerationEnvironment.Remove(this.GenerationEnvironment.Length - 3, 1);
+    }
+#>
+}
+<#
+    EndNamespace(code);
+}
+
+fileManager.Process();
+
+#>
+<#+
+
+public void WriteHeader(CodeStringGenerator codeStringGenerator, EntityFrameworkTemplateFileManager fileManager)
+{
+    fileManager.StartHeader();
+#>
+//------------------------------------------------------------------------------
+// <auto-generated>
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine1")#>
+//
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine2")#>
+// <#=CodeGenerationTools.GetResourceString("Template_GeneratedCodeCommentLine3")#>
+// </auto-generated>
+//------------------------------------------------------------------------------
+<#=codeStringGenerator.UsingDirectives(inHeader: true)#>
+<#+
+    fileManager.EndBlock();
+}
+
+public void BeginNamespace(CodeGenerationTools code)
+{
+    var codeNamespace = code.VsNamespaceSuggestion();
+    if (!String.IsNullOrEmpty(codeNamespace))
+    {
+#>
+namespace <#=code.EscapeNamespace(codeNamespace)#>
+{
+<#+
+        PushIndent("    ");
+    }
+}
+
+public void EndNamespace(CodeGenerationTools code)
+{
+    if (!String.IsNullOrEmpty(code.VsNamespaceSuggestion()))
+    {
+        PopIndent();
+#>
+}
+<#+
+    }
+}
+
+public const string TemplateId = "CSharp_DbContext_Types_EF6";
+
+public class CodeStringGenerator
+{
+    private readonly CodeGenerationTools _code;
+    private readonly TypeMapper _typeMapper;
+    private readonly MetadataTools _ef;
+
+    public CodeStringGenerator(CodeGenerationTools code, TypeMapper typeMapper, MetadataTools ef)
+    {
+        ArgumentNotNull(code, "code");
+        ArgumentNotNull(typeMapper, "typeMapper");
+        ArgumentNotNull(ef, "ef");
+
+        _code = code;
+        _typeMapper = typeMapper;
+        _ef = ef;
+    }
+
+    public string Property(EdmProperty edmProperty)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2} {{ {3}get; {4}set; }}",
+            Accessibility.ForProperty(edmProperty),
+            _typeMapper.GetTypeName(edmProperty.TypeUsage),
+            _code.Escape(edmProperty),
+            _code.SpaceAfter(Accessibility.ForGetter(edmProperty)),
+            _code.SpaceAfter(Accessibility.ForSetter(edmProperty)));
+    }
+
+    public string NavigationProperty(NavigationProperty navProp)
+    {
+        var endType = _typeMapper.GetTypeName(navProp.ToEndMember.GetEntityType());
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2} {{ {3}get; {4}set; }}",
+            AccessibilityAndVirtual(Accessibility.ForNavigationProperty(navProp)),
+            navProp.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many ? ("ICollection<" + endType + ">") : endType,
+            _code.Escape(navProp),
+            _code.SpaceAfter(Accessibility.ForGetter(navProp)),
+            _code.SpaceAfter(Accessibility.ForSetter(navProp)));
+    }
+    
+    public string AccessibilityAndVirtual(string accessibility)
+    {
+        return accessibility + (accessibility != "private" ? " virtual" : "");
+    }
+    
+    public string EntityClassOpening(EntityType entity)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1}partial class {2}{3}",
+            Accessibility.ForType(entity),
+            _code.SpaceAfter(_code.AbstractOption(entity)),
+            _code.Escape(entity),
+            _code.StringBefore(" : ", _typeMapper.GetTypeName(entity.BaseType)));
+    }
+    
+    public string EnumOpening(SimpleType enumType)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} enum {1} : {2}",
+            Accessibility.ForType(enumType),
+            _code.Escape(enumType),
+            _code.Escape(_typeMapper.UnderlyingClrType(enumType)));
+        }
+    
+    public void WriteFunctionParameters(EdmFunction edmFunction, Action<string, string, string, string> writeParameter)
+    {
+        var parameters = FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
+        foreach (var parameter in parameters.Where(p => p.NeedsLocalVariable))
+        {
+            var isNotNull = parameter.IsNullableOfT ? parameter.FunctionParameterName + ".HasValue" : parameter.FunctionParameterName + " != null";
+            var notNullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", " + parameter.FunctionParameterName + ")";
+            var nullInit = "new ObjectParameter(\"" + parameter.EsqlParameterName + "\", typeof(" + TypeMapper.FixNamespaces(parameter.RawClrTypeName) + "))";
+            writeParameter(parameter.LocalVariableName, isNotNull, notNullInit, nullInit);
+        }
+    }
+    
+    public string ComposableFunctionMethod(EdmFunction edmFunction, string modelNamespace)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} IQueryable<{1}> {2}({3})",
+            AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
+            _typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
+            _code.Escape(edmFunction),
+            string.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray()));
+    }
+    
+    public string ComposableCreateQuery(EdmFunction edmFunction, string modelNamespace)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "return ((IObjectContextAdapter)this).ObjectContext.CreateQuery<{0}>(\"[{1}].[{2}]({3})\"{4});",
+            _typeMapper.GetTypeName(_typeMapper.GetReturnType(edmFunction), modelNamespace),
+            edmFunction.NamespaceName,
+            edmFunction.Name,
+            string.Join(", ", parameters.Select(p => "@" + p.EsqlParameterName).ToArray()),
+            _code.StringBefore(", ", string.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray())));
+    }
+    
+    public string FunctionMethod(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        var returnType = _typeMapper.GetReturnType(edmFunction);
+
+        var paramList = String.Join(", ", parameters.Select(p => TypeMapper.FixNamespaces(p.FunctionParameterType) + " " + p.FunctionParameterName).ToArray());
+        if (includeMergeOption)
+        {
+            paramList = _code.StringAfter(paramList, ", ") + "MergeOption mergeOption";
+        }
+
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} {1} {2}({3})",
+            AccessibilityAndVirtual(Accessibility.ForMethod(edmFunction)),
+            returnType == null ? "int" : "ObjectResult<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
+            _code.Escape(edmFunction),
+            paramList);
+    }
+    
+    public string ExecuteFunction(EdmFunction edmFunction, string modelNamespace, bool includeMergeOption)
+    {
+        var parameters = _typeMapper.GetParameters(edmFunction);
+        var returnType = _typeMapper.GetReturnType(edmFunction);
+
+        var callParams = _code.StringBefore(", ", String.Join(", ", parameters.Select(p => p.ExecuteParameterName).ToArray()));
+        if (includeMergeOption)
+        {
+            callParams = ", mergeOption" + callParams;
+        }
+        
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction{0}(\"{1}\"{2});",
+            returnType == null ? "" : "<" + _typeMapper.GetTypeName(returnType, modelNamespace) + ">",
+            edmFunction.Name,
+            callParams);
+    }
+    
+    public string DbSet(EntitySet entitySet)
+    {
+        return string.Format(
+            CultureInfo.InvariantCulture,
+            "{0} virtual DbSet<{1}> {2} {{ get; set; }}",
+            Accessibility.ForReadOnlyProperty(entitySet),
+            _typeMapper.GetTypeName(entitySet.ElementType),
+            _code.Escape(entitySet));
+    }
+
+    public string UsingDirectives(bool inHeader, bool includeCollections = true)
+    {
+        return inHeader == string.IsNullOrEmpty(_code.VsNamespaceSuggestion())
+            ? string.Format(
+                CultureInfo.InvariantCulture,
+                "{0}using System;{1}" +
+                "{2}",
+                inHeader ? Environment.NewLine : "",
+                includeCollections ? (Environment.NewLine + "using System.Collections.Generic;") : "",
+                inHeader ? "" : Environment.NewLine)
+            : "";
+    }
+}
+
+public class TypeMapper
+{
+    private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";
+
+    private readonly System.Collections.IList _errors;
+    private readonly CodeGenerationTools _code;
+    private readonly MetadataTools _ef;
+
+    public TypeMapper(CodeGenerationTools code, MetadataTools ef, System.Collections.IList errors)
+    {
+        ArgumentNotNull(code, "code");
+        ArgumentNotNull(ef, "ef");
+        ArgumentNotNull(errors, "errors");
+
+        _code = code;
+        _ef = ef;
+        _errors = errors;
+    }
+
+    public static string FixNamespaces(string typeName)
+    {
+        return typeName.Replace("System.Data.Spatial.", "System.Data.Entity.Spatial.");
+    }
+
+    public string GetTypeName(TypeUsage typeUsage)
+    {
+        return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace: null);
+    }
+
+    public string GetTypeName(EdmType edmType)
+    {
+        return GetTypeName(edmType, isNullable: null, modelNamespace: null);
+    }
+
+    public string GetTypeName(TypeUsage typeUsage, string modelNamespace)
+    {
+        return typeUsage == null ? null : GetTypeName(typeUsage.EdmType, _ef.IsNullable(typeUsage), modelNamespace);
+    }
+
+    public string GetTypeName(EdmType edmType, string modelNamespace)
+    {
+        return GetTypeName(edmType, isNullable: null, modelNamespace: modelNamespace);
+    }
+
+    public string GetTypeName(EdmType edmType, bool? isNullable, string modelNamespace)
+    {
+        if (edmType == null)
+        {
+            return null;
+        }
+
+        var collectionType = edmType as CollectionType;
+        if (collectionType != null)
+        {
+            return String.Format(CultureInfo.InvariantCulture, "ICollection<{0}>", GetTypeName(collectionType.TypeUsage, modelNamespace));
+        }
+
+        var typeName = _code.Escape(edmType.MetadataProperties
+                                .Where(p => p.Name == ExternalTypeNameAttributeName)
+                                .Select(p => (string)p.Value)
+                                .FirstOrDefault())
+            ?? (modelNamespace != null && edmType.NamespaceName != modelNamespace ?
+                _code.CreateFullName(_code.EscapeNamespace(edmType.NamespaceName), _code.Escape(edmType)) :
+                _code.Escape(edmType));
+
+        if (edmType is StructuralType)
+        {
+            return typeName;
+        }
+
+        if (edmType is SimpleType)
+        {
+            var clrType = UnderlyingClrType(edmType);
+            if (!IsEnumType(edmType))
+            {
+                typeName = _code.Escape(clrType);
+            }
+
+            typeName = FixNamespaces(typeName);
+
+            return clrType.IsValueType && isNullable == true ?
+                String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName) :
+                typeName;
+        }
+
+        throw new ArgumentException("edmType");
+    }
+    
+    public Type UnderlyingClrType(EdmType edmType)
+    {
+        ArgumentNotNull(edmType, "edmType");
+
+        var primitiveType = edmType as PrimitiveType;
+        if (primitiveType != null)
+        {
+            return primitiveType.ClrEquivalentType;
+        }
+
+        if (IsEnumType(edmType))
+        {
+            return GetEnumUnderlyingType(edmType).ClrEquivalentType;
+        }
+
+        return typeof(object);
+    }
+    
+    public object GetEnumMemberValue(MetadataItem enumMember)
+    {
+        ArgumentNotNull(enumMember, "enumMember");
+        
+        var valueProperty = enumMember.GetType().GetProperty("Value");
+        return valueProperty == null ? null : valueProperty.GetValue(enumMember, null);
+    }
+    
+    public string GetEnumMemberName(MetadataItem enumMember)
+    {
+        ArgumentNotNull(enumMember, "enumMember");
+        
+        var nameProperty = enumMember.GetType().GetProperty("Name");
+        return nameProperty == null ? null : (string)nameProperty.GetValue(enumMember, null);
+    }
+
+    public System.Collections.IEnumerable GetEnumMembers(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+
+        var membersProperty = enumType.GetType().GetProperty("Members");
+        return membersProperty != null 
+            ? (System.Collections.IEnumerable)membersProperty.GetValue(enumType, null)
+            : Enumerable.Empty<MetadataItem>();
+    }
+    
+    public bool EnumIsFlags(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+        
+        var isFlagsProperty = enumType.GetType().GetProperty("IsFlags");
+        return isFlagsProperty != null && (bool)isFlagsProperty.GetValue(enumType, null);
+    }
+
+    public bool IsEnumType(GlobalItem edmType)
+    {
+        ArgumentNotNull(edmType, "edmType");
+
+        return edmType.GetType().Name == "EnumType";
+    }
+
+    public PrimitiveType GetEnumUnderlyingType(EdmType enumType)
+    {
+        ArgumentNotNull(enumType, "enumType");
+
+        return (PrimitiveType)enumType.GetType().GetProperty("UnderlyingType").GetValue(enumType, null);
+    }
+
+    public string CreateLiteral(object value)
+    {
+        if (value == null || value.GetType() != typeof(TimeSpan))
+        {
+            return _code.CreateLiteral(value);
+        }
+
+        return string.Format(CultureInfo.InvariantCulture, "new TimeSpan({0})", ((TimeSpan)value).Ticks);
+    }
+    
+    public bool VerifyCaseInsensitiveTypeUniqueness(IEnumerable<string> types, string sourceFile)
+    {
+        ArgumentNotNull(types, "types");
+        ArgumentNotNull(sourceFile, "sourceFile");
+        
+        var hash = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
+        if (types.Any(item => !hash.Add(item)))
+        {
+            _errors.Add(
+                new CompilerError(sourceFile, -1, -1, "6023",
+                    String.Format(CultureInfo.CurrentCulture, CodeGenerationTools.GetResourceString("Template_CaseInsensitiveTypeConflict"))));
+            return false;
+        }
+        return true;
+    }
+    
+    public IEnumerable<SimpleType> GetEnumItemsToGenerate(IEnumerable<GlobalItem> itemCollection)
+    {
+        return GetItemsToGenerate<SimpleType>(itemCollection)
+            .Where(e => IsEnumType(e));
+    }
+    
+    public IEnumerable<T> GetItemsToGenerate<T>(IEnumerable<GlobalItem> itemCollection) where T: EdmType
+    {
+        return itemCollection
+            .OfType<T>()
+            .Where(i => !i.MetadataProperties.Any(p => p.Name == ExternalTypeNameAttributeName))
+            .OrderBy(i => i.Name);
+    }
+
+    public IEnumerable<string> GetAllGlobalItems(IEnumerable<GlobalItem> itemCollection)
+    {
+        return itemCollection
+            .Where(i => i is EntityType || i is ComplexType || i is EntityContainer || IsEnumType(i))
+            .Select(g => GetGlobalItemName(g));
+    }
+
+    public string GetGlobalItemName(GlobalItem item)
+    {
+        if (item is EdmType)
+        {
+            return ((EdmType)item).Name;
+        }
+        else
+        {
+            return ((EntityContainer)item).Name;
+        }
+    }
+
+    public IEnumerable<EdmProperty> GetSimpleProperties(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetSimpleProperties(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetComplexProperties(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
+    }
+    
+    public IEnumerable<EdmProperty> GetComplexProperties(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is ComplexType && p.DeclaringType == type);
+    }
+
+    public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(EntityType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
+    }
+    
+    public IEnumerable<EdmProperty> GetPropertiesWithDefaultValues(ComplexType type)
+    {
+        return type.Properties.Where(p => p.TypeUsage.EdmType is SimpleType && p.DeclaringType == type && p.DefaultValue != null);
+    }
+
+    public IEnumerable<NavigationProperty> GetNavigationProperties(EntityType type)
+    {
+        return type.NavigationProperties.Where(np => np.DeclaringType == type);
+    }
+    
+    public IEnumerable<NavigationProperty> GetCollectionNavigationProperties(EntityType type)
+    {
+        return type.NavigationProperties.Where(np => np.DeclaringType == type && np.ToEndMember.RelationshipMultiplicity == RelationshipMultiplicity.Many);
+    }
+    
+    public FunctionParameter GetReturnParameter(EdmFunction edmFunction)
+    {
+        ArgumentNotNull(edmFunction, "edmFunction");
+
+        var returnParamsProperty = edmFunction.GetType().GetProperty("ReturnParameters");
+        return returnParamsProperty == null
+            ? edmFunction.ReturnParameter
+            : ((IEnumerable<FunctionParameter>)returnParamsProperty.GetValue(edmFunction, null)).FirstOrDefault();
+    }
+
+    public bool IsComposable(EdmFunction edmFunction)
+    {
+        ArgumentNotNull(edmFunction, "edmFunction");
+
+        var isComposableProperty = edmFunction.GetType().GetProperty("IsComposableAttribute");
+        return isComposableProperty != null && (bool)isComposableProperty.GetValue(edmFunction, null);
+    }
+
+    public IEnumerable<FunctionImportParameter> GetParameters(EdmFunction edmFunction)
+    {
+        return FunctionImportParameter.Create(edmFunction.Parameters, _code, _ef);
+    }
+
+    public TypeUsage GetReturnType(EdmFunction edmFunction)
+    {
+        var returnParam = GetReturnParameter(edmFunction);
+        return returnParam == null ? null : _ef.GetElementType(returnParam.TypeUsage);
+    }
+    
+    public bool GenerateMergeOptionFunction(EdmFunction edmFunction, bool includeMergeOption)
+    {
+        var returnType = GetReturnType(edmFunction);
+        return !includeMergeOption && returnType != null && returnType.EdmType.BuiltInTypeKind == BuiltInTypeKind.EntityType;
+    }
+}
+
+public static void ArgumentNotNull<T>(T arg, string name) where T : class
+{
+    if (arg == null)
+    {
+        throw new ArgumentNullException(name);
+    }
+}
+#>

+ 68 - 0
mateo/Profile.xaml

@@ -0,0 +1,68 @@
+<Window x:Class="mateo.Profile"
+        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:mateo"
+        mc:Ignorable="d"
+        Title="Mateo" Height="540" Width="960" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
+    <Grid>
+        <Grid Margin="0,0,824,0" Background="#E74C32">
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,371,48,129" Click="btn_insta">
+                <Image Source="image\insta.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,331,48,169" Click="btn_vk">
+                <Image Source="image\vk.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,413,48,87" Click="btn_whatsapp">
+                <Image Source="image\whatsapp.png" Height="40" Width="40"/>
+            </Button>
+
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Margin="48,454,48,46" Click="btn_gmail">
+                <Image Source="image\gmail.png" Height="40" Width="40"/>
+            </Button>
+        </Grid>
+
+        <Grid Background="#E74C32" Margin="0,0,0,470">
+            <Image Source="image/logo.png" Margin="0,0,820,-20"/>
+            <Button Content="Профиль" FontSize="16" BorderThickness="0" Background="Transparent" Margin="627,10,223,10" MaxWidth="80" Click="btnProfileClick"/>
+            <Button Content="Услуги" FontSize="16" BorderThickness="0" Background="Transparent" Margin="146,10,674,10" MaxWidth="80" Click="btnUslugiClick"/>
+            <TextBlock Text="Парк развлечений" HorizontalAlignment="Center" FontSize="28" Foreground="#ffff" Margin="282,5,327,0"/>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnLogout" Margin="860,14,60,16">
+                <Image Source="image\logout.png" Height="40" Width="40"/>
+            </Button>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnExit" Margin="910,14,10,16">
+                <Image Source="image\exit.png" Height="40" Width="40"/>
+            </Button>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnTickets" Margin="810,14,105,16">
+                <Image Source="image\tickets.png" Height="40" Width="40"/>
+            </Button>
+        </Grid>
+
+        <Grid>
+            <Image x:Name="photo_profile" Margin="329,141,535,318"/>
+            <Button x:Name="btn_photo" Content="добавить фото" Background="Transparent" Click="btn_photo_click" Margin="329,227,535,287"/>
+            <Button x:Name="btn_dltphoto" Content="удалить фото" Background="Transparent" Click="btn_deletephoto_click" Margin="329,258,535,256"/>
+            <TextBlock x:Name="name_profile" FontSize="24" Margin="463,141,178,355" />
+            <TextBlock x:Name="balance_profile" Text="Баланс карты: " FontSize="16" Margin="463,190,178,287"/>
+            <Button x:Name="btn_balance" Content="Пополнить баланс" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Margin="463,410,275,83" Click="btn_balance_Click"/>
+        </Grid>
+
+
+
+        <Grid x:Name="grid_balance" Visibility="Hidden" Background="White" Margin="136,70,0,0">
+            <Image Source="image\card.png" Width="480" Height="320" VerticalAlignment="Top"/>
+            <TextBox FontSize ="24" Background="Transparent" Margin="292,182,209,257" />
+
+            <StackPanel Orientation="Horizontal" Height="80" VerticalAlignment="Bottom" HorizontalAlignment="Right">
+                <TextBlock Text="Сумма пополнения: " FontSize="20" VerticalAlignment="Center"/>
+                <TextBox x:Name="txt_balanceplus" FontSize="20" VerticalAlignment="Center" Width="120" />
+                <Button x:Name="btn_balanceplus" Content="Пополнить" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Click="btn_balanceplus_Click" Width="120" Height="50" Margin="15"/>
+                <Button x:Name="btn_cancelblnc" Content="Отмена" Foreground="White" FontSize="18" BorderThickness="0" Background="Black" Click="btn_cancelblnc_Click" Width="120" Height="50" Margin="15"/>
+            </StackPanel>
+        </Grid>
+
+    </Grid>
+</Window>

+ 159 - 0
mateo/Profile.xaml.cs

@@ -0,0 +1,159 @@
+using Microsoft.Win32;
+using System;
+using System.Collections.Generic;
+using System.IO;
+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 mateo
+{
+    public partial class Profile : Window
+    {
+        byte[] image;
+        public Profile()
+        {
+            InitializeComponent();
+            Update();
+        }
+
+        public void Update()
+        {
+            //фио
+            var fio = DB.GetContext().Users.FirstOrDefault(x => x.IDUsers == DB.Iduser);
+            name_profile.Text = fio.LastName + " " + fio.FirstName + " " + fio.MiddleName;
+
+            //выводим баланс карты
+            DB.Idcard = fio.FKCard;
+            balance_profile.Text = String.Format("{0:0.00}", Convert.ToDecimal(DB.GetContext().Card.FirstOrDefault(x => x.IDCard == fio.FKCard).Balance));
+
+            //выводим картинку из бд
+            if (fio.Image != null)
+            {
+                image = fio.Image;
+                MemoryStream ms = new MemoryStream(image);
+                photo_profile.Source = BitmapFrame.Create(ms);
+            }
+            if (photo_profile.Source != null) btn_photo.Content = "изменить фото";
+        }
+        private void btnProfileClick(object sender, RoutedEventArgs e)
+        {
+        }
+
+        private void btnUslugiClick(object sender, RoutedEventArgs e)
+        {
+            MainWindow mainWindow = new MainWindow();
+            mainWindow.Show();
+            this.Close();
+        }
+
+        private void btn_balance_Click(object sender, RoutedEventArgs e)
+        {
+            grid_balance.Visibility = Visibility.Visible;
+        }
+
+        private void btn_balanceplus_Click(object sender, RoutedEventArgs e)
+        {
+            //"пополняем баланс" типа
+            if (txt_balanceplus.Text != "")
+            {
+                var a = DB.GetContext().Card.Where(x => x.IDCard == DB.Idcard).FirstOrDefault();
+                a.Balance += Convert.ToDecimal(txt_balanceplus.Text);
+                DB.GetContext().SaveChanges();
+                grid_balance.Visibility = Visibility.Hidden;
+            }
+            var fio = DB.GetContext().Users.FirstOrDefault(x => x.IDUsers == DB.Iduser);
+            DB.Idcard = fio.FKCard;
+            balance_profile.Text = DB.GetContext().Card.FirstOrDefault(x => x.IDCard == fio.FKCard).Balance.ToString();
+            Update();
+        }
+
+        private void btn_cancelblnc_Click(object sender, RoutedEventArgs e)
+        {
+            grid_balance.Visibility = Visibility.Hidden;
+        }
+
+        private void btn_photo_click(object sender, RoutedEventArgs e)
+        {
+            try
+            {
+                string imageLoc;
+                OpenFileDialog dld = new OpenFileDialog();
+                dld.Filter = "JPG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|JPEG Files (*.jpeg)|*.jpeg";
+                dld.Title = "Выберите изображение пользователя";
+                bool? result = dld.ShowDialog();
+                if(result == true)
+                {
+                    imageLoc = dld.FileName;
+                    photo_profile.Source = new BitmapImage(new Uri(imageLoc));
+                    FileStream fs = new FileStream(imageLoc, FileMode.Open, FileAccess.Read);
+                    BinaryReader br = new BinaryReader(fs);
+
+                    image = br.ReadBytes((int)fs.Length);
+                    var img = DB.GetContext().Users.Where(x => x.IDUsers == DB.Iduser).FirstOrDefault();
+                    img.Image = image;
+                    DB.GetContext().SaveChanges();
+                }
+                if (photo_profile.Source != null) btn_photo.Content = "изменить фото";
+            }
+            catch (Exception ex)
+            {
+                MessageBox.Show(ex.Message);
+            }
+        }
+
+        private void btn_deletephoto_click(object sender, RoutedEventArgs e)
+        {
+            var fio = DB.GetContext().Users.FirstOrDefault(x => x.IDUsers == DB.Iduser);
+            fio.Image = null;
+            DB.GetContext().SaveChanges();
+            photo_profile.Source = null;
+            btn_photo.Content = "добавить фото";
+        }
+        #region соцсети
+        private void btn_insta(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_vk(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_whatsapp(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void btn_gmail(object sender, RoutedEventArgs e)
+        {
+
+        }
+        #endregion
+        private void btnExit(object sender, RoutedEventArgs e)
+        {
+            Application.Current.Shutdown();
+        }
+
+        private void btnLogout(object sender, RoutedEventArgs e)
+        {
+            First first = new First();
+            first.Show();
+            this.Close();
+        }
+
+        private void btnTickets(object sender, RoutedEventArgs e)
+        {
+
+        }
+    }
+}

+ 55 - 0
mateo/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("mateo")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("HP Inc.")]
+[assembly: AssemblyProduct("mateo")]
+[assembly: AssemblyCopyright("Copyright © HP Inc. 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
mateo/Properties/Resources.Designer.cs

@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код был создан программным средством.
+//     Версия среды выполнения: 4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+
+namespace mateo.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("mateo.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
mateo/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
mateo/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 mateo.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
mateo/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>

+ 29 - 0
mateo/Role.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Role
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Role()
+        {
+            this.Employees = new HashSet<Employees>();
+        }
+    
+        public int IDRole { get; set; }
+        public string Role1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Employees> Employees { get; set; }
+    }
+}

+ 29 - 0
mateo/StatusAttraction.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class StatusAttraction
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public StatusAttraction()
+        {
+            this.Attraction = new HashSet<Attraction>();
+        }
+    
+        public int IDStatusAttraction { get; set; }
+        public string StatusAttraction1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Attraction> Attraction { get; set; }
+    }
+}

+ 29 - 0
mateo/StatusEmployees.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class StatusEmployees
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public StatusEmployees()
+        {
+            this.Employees = new HashSet<Employees>();
+        }
+    
+        public int IDStatusEmployees { get; set; }
+        public string StatusEmployees1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Employees> Employees { get; set; }
+    }
+}

+ 29 - 0
mateo/StatusPay.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class StatusPay
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public StatusPay()
+        {
+            this.Tickets = new HashSet<Tickets>();
+        }
+    
+        public int IDStatusPay { get; set; }
+        public string StatusPay1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Tickets> Tickets { get; set; }
+    }
+}

+ 268 - 0
mateo/SysAdmin.xaml

@@ -0,0 +1,268 @@
+<Window x:Class="mateo.SysAdmin"
+        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:mateo"
+        mc:Ignorable="d"
+        Title="Mateo" Height="540" Width="960" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
+    <Grid Background="White">
+        <!--#region-->
+        <Grid  Margin="0,0,824,0" Background="#30DB92">
+        </Grid>
+        <Grid Background="#30DB92" Margin="0,0,0,470">
+            <Image Source="image/logosys.png" Margin="0,0,825,-17"/>
+            <TextBlock Name="txtFio_Admin" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" Margin="140,0,50,0"/>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btnLogout" Margin="860,14,60,16">
+                <Image Source="image\logout.png" Height="40" Width="40"/>
+            </Button>
+            <Button Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="BtnExit" Margin="910,14,10,16">
+                <Image Source="image\exit.png" Height="40" Width="40"/>
+            </Button>
+        </Grid>
+        <!--#endregion-->
+
+        <TabControl BorderThickness="0" TabStripPlacement="Left" Margin="0,80,0,0">
+
+            <TabItem Header="Аттракционы" FontSize="16" Background="Transparent" Width="134" Height="48">
+                <Grid>
+                    <DataGrid Name="datagridAttraction" AutoGenerateColumns="False" IsReadOnly="True" ColumnWidth="*" FontSize="12" Margin="0,0,0,60">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Header="Наименование" Binding="{Binding NameAttraction}">
+                                <DataGridTextColumn.ElementStyle>
+                                    <Style>
+                                        <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
+                                    </Style>
+                                </DataGridTextColumn.ElementStyle>
+                            </DataGridTextColumn>
+                            <DataGridTextColumn Header="Описание" Binding="{Binding Description}">
+                                <DataGridTextColumn.ElementStyle>
+                                    <Style>
+                                        <Setter Property="TextBlock.TextWrapping" Value="Wrap"/>
+                                        <Setter Property="TextBlock.MaxHeight" Value="20"/>
+                                    </Style>
+                                </DataGridTextColumn.ElementStyle>
+                            </DataGridTextColumn>
+                            <DataGridTextColumn Header="Количество мест" Binding="{Binding QuantityAttraction}"/>
+                            <DataGridTextColumn Header="Цена (Взрослый)" Binding="{Binding PriceOld, StringFormat=0.00}"/>
+                            <DataGridTextColumn Header="Цена (Детский)" Binding="{Binding PriceBaby, StringFormat=0.00}"/>
+                            <DataGridTextColumn Header="Тип билета" Binding="{Binding Type.Type1}"/>
+                            <DataGridTemplateColumn Header="Изображение">
+                                <DataGridTemplateColumn.CellTemplate>
+                                    <DataTemplate>
+                                        <Image Height="30" Source="{Binding ImageAttraction}"/>
+                                    </DataTemplate>
+                                </DataGridTemplateColumn.CellTemplate>
+                            </DataGridTemplateColumn>
+                            <DataGridTextColumn Header="Статус" Binding="{Binding StatusAttraction.StatusAttraction1}"/>
+                            <DataGridTemplateColumn Header="Изменить">
+                                <DataGridTemplateColumn.CellTemplate>
+                                    <DataTemplate>
+                                        <Button Content="Изменить" Click="BtnChangeAttractionClick"/>
+                                    </DataTemplate>
+                                </DataGridTemplateColumn.CellTemplate>
+                            </DataGridTemplateColumn>
+                        </DataGrid.Columns>
+                    </DataGrid>
+
+                    <Button Content="Добавить аттракцион" FontSize="16" Background="Transparent" Click="BtnAddNewAttractionClick" Margin="638,404,10,10" />
+
+                    <Grid x:Name="gridAddAttraction" Visibility="Hidden" Background="White">
+                        <StackPanel Margin="20,82,448,73">
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Наименование:" Width="140"/>
+                                <TextBox x:Name="txtName_Attraction" MaxLength="50" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="85">
+                                <TextBlock Text="Описание:" Width="140"/>
+                                <TextBox x:Name="txtDescription_Attraction" MaxLength="200" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Количество мест:" Width="140"/>
+                                <TextBox x:Name="txtQuantity_Attraction" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Цена old:" Width="140"/>
+                                <TextBox x:Name="txtPriceOld_Attraction" Width="200"/>
+                            </StackPanel> 
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Цена:" Width="140"/>
+                                <TextBox x:Name="txtPriceBaby_Attraction" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Статус:" Width="140"/>
+                                <ComboBox Name="comboboxStatus_Attraction" DisplayMemberPath="StatusAttraction1" Background="Transparent" Width="200"/>
+
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Тип билета:" Width="140"/>
+                                <ComboBox Name="comboboxType_Attraction" DisplayMemberPath="Type1" Background="Transparent" Width="200"/>
+
+                            </StackPanel>
+                        </StackPanel>
+                        <Image x:Name="imageAdd_Attraction" Margin="402,82,151,187"/>
+                        <Button Content="Добавить изображение" Background="Transparent" Click="BtnAddImage" Margin="451,293,151,125"/>
+                        <Button Content="Добавить" FontSize="16" Background="Transparent" Click="BtnAddAttractionClick" Margin="463,405,185,9" />
+                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackAttractionClick" Margin="663,405,41,9" />
+                    </Grid>
+
+                    <Grid x:Name="gridChangeAttraction" Visibility="Hidden" Background="White">
+                        <StackPanel Margin="20,82,492,73">
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Наименование:" Width="100"/>
+                                <TextBox x:Name="txtChange_NameAttraction" MaxLength="50" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="85">
+                                <TextBlock Text="Описание:" Width="100"/>
+                                <TextBox x:Name="txtChange_Description" MaxLength="200" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Количество мест:" Width="100"/>
+                                <TextBox x:Name="txtChange_Quantity" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Цена old:" Width="100"/>
+                                <TextBox x:Name="txtChange_PriceOldAttraction" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Цена:" Width="100"/>
+                                <TextBox x:Name="txtChange_PriceBabyAttraction" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Статус:" Width="100"/>
+                                <ComboBox Name="comboboxChange_StatusAttraction" DisplayMemberPath="StatusAttraction1" Background="Transparent" Width="200"/>
+
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Тип билета:" Width="100"/>
+                                <ComboBox Name="comboboxChange_TypeAttraction" DisplayMemberPath="Type1" Background="Transparent" Width="200"/>
+
+                            </StackPanel>
+                        </StackPanel>
+                        <Image x:Name="imageChange_Attraction" Margin="402,82,151,187"/>
+                        <Button Content="Изменить изображение" Background="Transparent" Click="BtnChangeImageClick" Margin="451,293,151,125"/>
+                        <Button Content="Сохранить изменения" FontSize="16" Background="Transparent" Click="BtnSaveChangeClick" Margin="423,405,203,9" />
+                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackAttractionClick" Margin="663,405,41,9" />
+                    </Grid>
+                </Grid>
+            </TabItem>
+
+
+            <TabItem Header="Сотрудники" x:Name="tabEmployees" FontSize="16" Background="Transparent" Width="134" Height="48">
+                <Grid>
+                    <DataGrid Name="datagridEmployees" AutoGenerateColumns="False" IsReadOnly="True" ColumnWidth="*" FontSize="12" Margin="0,0,0,60">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Header="Фамилия" Binding="{Binding LastName}"/>
+                            <DataGridTextColumn Header="Имя" Binding="{Binding FirstName}"/>
+                            <DataGridTextColumn Header="Отчество" Binding="{Binding MiddleName}"/>
+                            <DataGridTextColumn Header="Роль" Binding="{Binding Role.Role1}"/>
+                            <DataGridTextColumn Header="Статус" Binding="{Binding StatusEmployees.StatusEmployees1}"/>
+                            <DataGridTemplateColumn Header="Изменить">
+                                <DataGridTemplateColumn.CellTemplate>
+                                    <DataTemplate>
+                                        <Button Content="Изменить" Click="BtnChangeEmployeesClick"/>
+                                    </DataTemplate>
+                                </DataGridTemplateColumn.CellTemplate>
+                            </DataGridTemplateColumn>
+                        </DataGrid.Columns>
+                    </DataGrid>
+
+                    <Button Content="Добавить сотрудника" FontSize="16" Background="Transparent" Click="BtnAddNewEmployeesClick" Margin="638,404,10,10" />
+
+                    <Grid x:Name="gridAddEmployees" Visibility="Hidden" Background="White">
+                        <StackPanel Margin="20,82,450,166">
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Фамилия:" Width="140"/>
+                                <TextBox x:Name="txtLastName_Employyes" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Имя:" Width="140"/>
+                                <TextBox x:Name="txtFirstName_Employyes" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Отчество:" Width="140"/>
+                                <TextBox x:Name="txtMiddleName_Employees" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Роль:" Width="140"/>
+                                <ComboBox Name="comboboxRole_Employees" Background="Transparent" Width="200">
+                                    <TextBlock Text="Системный администратор"/>
+                                    <TextBlock Text="Администратор"/>
+                                </ComboBox>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Статус:" Width="140"/>
+                                <ComboBox Name="comboboxStatus_Employees" Background="Transparent" Width="200">
+                                    <TextBlock Text="Работает"/>
+                                    <TextBlock Text="Уволен"/>
+                                </ComboBox>
+                            </StackPanel>
+                        </StackPanel>
+                        <!--<StackPanel Margin="440,82,62,267">
+                            --><!--<StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Логин" Width="140"/>
+                                <TextBox x:Name="txtLogin" MaxLength="8" Width="140"/>
+                            </StackPanel>--><!--
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Пароль" Width="140"/>
+                                <Grid Width="110">
+                                    <TextBox x:Name="txtPassword" Visibility="Hidden"  TextChanged="txtPassword_TextChanged"/>
+                                    <PasswordBox x:Name="passPassword" MaxLength="8" Width="140"/>
+                                </Grid>
+                                <Grid>
+                                    <Button x:Name="imgVisible" Click="PasswordBoxInVisible" Width="30">
+                                        <Button.Background>
+                                            <ImageBrush ImageSource="image\visible.png" />
+                                        </Button.Background>
+                                    </Button>
+                                    <Button x:Name="imgInVisible" Visibility="Hidden" Click="PasswordBoxVisible" Width="30">
+                                        <Button.Background>
+                                            <ImageBrush ImageSource="image\invisible.png"/>
+                                        </Button.Background>
+                                    </Button>
+                                </Grid>
+                            </StackPanel>
+                        </StackPanel>-->
+                        <Button Content="Добавить" FontSize="16" Background="Transparent" Click="BtnAddEmployeesClick" Margin="463,405,185,9" />
+                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackEmployeesClick" Margin="663,405,41,9" />
+                    </Grid>
+
+                    <Grid x:Name="gridChangeEmployees" Visibility="Hidden" Background="White">
+                        <StackPanel Margin="20,82,450,166">
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Фамилия:" Width="140"/>
+                                <TextBox x:Name="txtLastName_ChangeEmployyes" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Имя:" Width="140"/>
+                                <TextBox x:Name="txtFirstName_ChangeEmployyes" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel  Orientation="Horizontal" Height="43">
+                                <TextBlock Text="Отчество:" Width="140"/>
+                                <TextBox x:Name="txtMiddleName_ChangeEmployees" TextWrapping="Wrap" Width="200"/>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Роль:" Width="140"/>
+                                <ComboBox Name="comboboxRole_ChangeEmployees" Background="Transparent" Width="200">
+                                    <TextBlock Text="Системный администратор"/>
+                                    <TextBlock Text="Администратор"/>
+                                </ComboBox>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal" Height="30">
+                                <TextBlock Text="Статус:" Width="140"/>
+                                <ComboBox Name="comboboxStatus_ChangeEmployees" Background="Transparent" Width="200">
+                                    <TextBlock Text="Работает"/>
+                                    <TextBlock Text="Уволен"/>
+                                </ComboBox>
+                            </StackPanel>
+                        </StackPanel>
+                       
+                        <Button Content="Изменить" FontSize="16" Background="Transparent" Click="BtnSaveChangeEmployeesClick" Margin="463,405,185,9" />
+                        <Button Content="Отмена" FontSize="16" Background="Transparent" Click="BtnBackEmployeesClick" Margin="663,405,41,9" />
+                    </Grid>
+
+                </Grid>
+            </TabItem>
+        </TabControl>
+    </Grid>
+</Window>

+ 309 - 0
mateo/SysAdmin.xaml.cs

@@ -0,0 +1,309 @@
+using Microsoft.Win32;
+using System;
+using System.Collections.Generic;
+using System.IO;
+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 mateo
+{
+    public partial class SysAdmin : Window
+    {
+        byte[] image; //очищать!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+        int idattraction = 0;
+        int idemployees = 0;
+        public SysAdmin()
+        {
+            InitializeComponent();
+            var fio = DB.GetContext().Employees.FirstOrDefault(x => x.IDEmployees == DB.Idemployees);
+            txtFio_Admin.Text = DB.GetContext().Role.FirstOrDefault(x => x.IDRole == fio.FKRole).Role1 + "\n" + fio.LastName + " " + fio.FirstName + " " + fio.MiddleName;
+
+            datagridAttraction.ItemsSource = DB.GetContext().Attraction.ToList();
+            datagridEmployees.ItemsSource = DB.GetContext().Employees.Where(x => x.IDEmployees != DB.Idemployees).ToList();
+            comboboxChange_StatusAttraction.ItemsSource = comboboxStatus_Attraction.ItemsSource = DB.GetContext().StatusAttraction.ToList();
+            comboboxChange_TypeAttraction.ItemsSource = comboboxType_Attraction.ItemsSource = DB.GetContext().Type.ToList();
+
+            if(fio.FKRole == 2) //если простто админ скрываем доб сотрудников/ может проверять не по id
+            tabEmployees.Visibility = Visibility.Hidden;
+        }
+
+        #region attraction
+        private void BtnAddImage(object sender, RoutedEventArgs e)
+        {
+            //выбираем и выводим изображение в image_add_attraction
+            string imageLoc;
+            OpenFileDialog dld = new OpenFileDialog();
+            dld.Filter = "JPG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|JPEG Files (*.jpeg)|*.jpeg";
+            dld.Title = "Выберите изображение пользователя";
+            bool? result = dld.ShowDialog();
+            if (result == true)
+            {
+                imageLoc = dld.FileName;
+                imageAdd_Attraction.Source = new BitmapImage(new Uri(imageLoc));
+                FileStream fs = new FileStream(imageLoc, FileMode.Open, FileAccess.Read);
+                BinaryReader br = new BinaryReader(fs);
+                image = br.ReadBytes((int)fs.Length);
+            }
+        }
+
+        private void BtnAddAttractionClick(object sender, RoutedEventArgs e)
+        {
+            //добавляем новый аттракцион в бд
+            if (txtName_Attraction.Text != "" && txtDescription_Attraction.Text != "" && txtQuantity_Attraction.Text != "" && txtPriceOld_Attraction.Text != "" && txtPriceBaby_Attraction.Text != ""
+                && imageAdd_Attraction.Source != null && comboboxStatus_Attraction.Text != "" && comboboxType_Attraction.Text != "")
+            {
+                var status = DB.GetContext().StatusAttraction.Where(x => x.StatusAttraction1 == comboboxStatus_Attraction.Text).FirstOrDefault();
+                var type = DB.GetContext().Type.Where(x => x.Type1 == comboboxType_Attraction.Text).FirstOrDefault();
+                Attraction attraction = new Attraction
+                {
+                    NameAttraction = txtName_Attraction.Text,
+                    Description = txtDescription_Attraction.Text,
+                    QuantityAttraction = Convert.ToInt32(txtQuantity_Attraction.Text),
+                    PriceOld = Convert.ToDecimal(txtPriceOld_Attraction.Text),
+                    PriceBaby = Convert.ToDecimal(txtPriceBaby_Attraction.Text),
+                    ImageAttraction = image,
+                    FKEmployees = DB.Idemployees,
+                    FKStatusAttraction = status.IDStatusAttraction,
+                    FKType = type.IDType
+                };
+                DB.GetContext().Attraction.Add(attraction);
+                DB.GetContext().SaveChanges();
+
+                MessageBox.Show("dcscsd");
+                datagridAttraction.ItemsSource = DB.GetContext().Attraction.ToList();
+                gridAddAttraction.Visibility = Visibility.Hidden;
+            }
+            else MessageBox.Show("Пустые поля!");
+        }
+        private void BtnChangeAttractionClick(object sender, RoutedEventArgs e)
+        {
+            //выводим данные из datagrid в grid чтобы потом изменить
+            if(datagridAttraction.SelectedItem is Attraction attraction)
+            {
+                idattraction = attraction.IDAttraction;
+                txtChange_NameAttraction.Text = attraction.NameAttraction;
+                txtChange_Description.Text = attraction.Description;
+                txtChange_Quantity.Text = attraction.QuantityAttraction.ToString();
+
+                decimal price = Convert.ToDecimal(attraction.PriceOld);
+                txtChange_PriceOldAttraction.Text = String.Format("{0:0.00}", price);
+                price = Convert.ToDecimal(attraction.PriceBaby);
+                txtChange_PriceBabyAttraction.Text = String.Format("{0:0.00}", price);
+
+                comboboxChange_StatusAttraction.Text = attraction.StatusAttraction.StatusAttraction1;
+                comboboxChange_TypeAttraction.Text = attraction.Type.Type1;
+
+                image = attraction.ImageAttraction;
+                MemoryStream ms = new MemoryStream(image);
+                imageChange_Attraction.Source = BitmapFrame.Create(ms);
+                datagridAttraction.Visibility = Visibility.Hidden;
+
+                gridChangeAttraction.Visibility = Visibility.Visible;
+            }
+        }
+        private void BtnSaveChangeClick(object sender, RoutedEventArgs e)
+        {
+            if (txtChange_NameAttraction.Text != "" && txtChange_Description.Text != "" && txtChange_Quantity.Text != "" && txtChange_PriceOldAttraction.Text != "" && txtChange_PriceBabyAttraction.Text != ""
+               && imageChange_Attraction.Source != null && comboboxChange_StatusAttraction.Text != "" && comboboxChange_TypeAttraction.Text != "")
+            {
+                //вносим изменения из change_attraction_grid в бд
+                var attr = DB.GetContext().Attraction.Where(x => x.IDAttraction == idattraction).FirstOrDefault();
+                var type = DB.GetContext().Type.Where(x => x.Type1 == comboboxChange_TypeAttraction.Text).FirstOrDefault();
+
+
+                attr.NameAttraction = txtChange_NameAttraction.Text;
+                attr.Description = txtChange_Description.Text;
+                attr.QuantityAttraction = Convert.ToInt32(txtChange_Quantity.Text);
+                attr.PriceOld = Convert.ToDecimal(txtChange_PriceOldAttraction.Text);
+                attr.PriceBaby = Convert.ToDecimal(txtChange_PriceBabyAttraction.Text);
+                //ищем в таблице StatusAttraction столбец с нужным статусом, затем записываем его id в FKStatusAttraction таблицы Attraction
+                var status = DB.GetContext().StatusAttraction.Where(x => x.StatusAttraction1 == comboboxChange_StatusAttraction.Text).FirstOrDefault();
+                attr.FKStatusAttraction = status.IDStatusAttraction;
+
+                attr.FKType = type.IDType; 
+
+                attr.ImageAttraction = image;
+                DB.GetContext().SaveChanges();
+                MessageBox.Show("4444444444444444");
+
+                gridChangeAttraction.Visibility = Visibility.Hidden;
+                datagridAttraction.Visibility = Visibility.Visible;
+                datagridAttraction.ItemsSource = DB.GetContext().Attraction.ToList();
+            }
+            else MessageBox.Show("Пустые поля!");
+        }
+
+        private void BtnBackAttractionClick(object sender, RoutedEventArgs e)
+        {
+            gridAddAttraction.Visibility = Visibility.Hidden;
+            gridChangeAttraction.Visibility = Visibility.Hidden;
+            datagridAttraction.Visibility = Visibility.Visible;
+        }
+
+        private void BtnChangeImageClick(object sender, RoutedEventArgs e)
+        {
+            //выбираем и выводим изображение в image_change_attraction
+            string imageLoc;
+            OpenFileDialog dld = new OpenFileDialog();
+            dld.Filter = "JPG Files (*.jpg)|*.jpg|PNG Files (*.png)|*.png|JPEG Files (*.jpeg)|*.jpeg";
+            dld.Title = "Выберите изображение пользователя";
+            bool? result = dld.ShowDialog();
+            if (result == true)
+            {
+                imageLoc = dld.FileName;
+                imageChange_Attraction.Source = new BitmapImage(new Uri(imageLoc));
+                FileStream fs = new FileStream(imageLoc, FileMode.Open, FileAccess.Read);
+                BinaryReader br = new BinaryReader(fs);
+                image = br.ReadBytes((int)fs.Length);
+            }
+        }
+
+        private void BtnAddNewAttractionClick(object sender, RoutedEventArgs e)
+        {
+            gridAddAttraction.Visibility = Visibility.Visible;
+        }
+        #endregion
+
+        private void BtnExit(object sender, RoutedEventArgs e)
+        {
+            Application.Current.Shutdown();
+
+        }
+
+        private void BtnChangeEmployeesClick(object sender, RoutedEventArgs e)
+        {
+            //выводим данные из datagrid в grid чтобы потом изменить
+            if (datagridEmployees.SelectedItem is Employees employees)
+            {
+                idemployees = employees.IDEmployees;
+                datagridEmployees.Visibility = Visibility.Hidden;
+                gridChangeEmployees.Visibility = Visibility.Visible;
+                txtLastName_ChangeEmployyes.Text = employees.LastName;
+                txtFirstName_ChangeEmployyes.Text = employees.FirstName;
+                txtMiddleName_ChangeEmployees.Text = employees.MiddleName;
+                comboboxRole_ChangeEmployees.Text = employees.Role.Role1;
+                comboboxStatus_ChangeEmployees.Text = employees.StatusEmployees.StatusEmployees1;
+            }
+        }
+
+        private void BtnAddEmployeesClick(object sender, RoutedEventArgs e)
+        {
+            //добавляем нового администратора в бд
+            if (txtLastName_Employyes.Text != "" && txtFirstName_Employyes.Text != "" && 
+                comboboxRole_Employees.Text != "" && comboboxStatus_Employees.Text != "")
+            {
+                var idemployees = DB.GetContext().Employees.OrderByDescending(x => x.IDEmployees).FirstOrDefault();
+                string login = "admin" + (idemployees.IDEmployees + 1).ToString();
+
+                Random random = new Random();
+                int pass1 = random.Next(100,999);
+                var list = new List<string> { "a", "b", "c", "d", "e" };
+                int index = random.Next(list.Count);
+                int index1 = random.Next(list.Count);
+                int index2 = random.Next(list.Count);
+                int index3 = random.Next(list.Count);
+
+                string password = list[index] + list[index1] + pass1 + list[index2] + list[index3];
+                var status = DB.GetContext().StatusEmployees.Where(x => x.StatusEmployees1 == comboboxStatus_Employees.Text).FirstOrDefault();
+                var role = DB.GetContext().Role.Where(x => x.Role1 == comboboxRole_Employees.Text).FirstOrDefault();
+                Employees employees = new Employees
+                {
+                    LastName = txtLastName_Employyes.Text,
+                    FirstName = txtFirstName_Employyes.Text,
+                    MiddleName = txtMiddleName_Employees.Text,
+                    Login = login,
+                    Password = password,
+                    FKRole = role.IDRole,
+                    FKStatusEmployees = status.IDStatusEmployees
+                };
+                DB.GetContext().Employees.Add(employees);
+                DB.GetContext().SaveChanges();
+                MessageBox.Show("Сотрудник добавлен", "Информация", MessageBoxButton.OK, MessageBoxImage.Information);
+
+                datagridEmployees.ItemsSource = DB.GetContext().Employees.Where(x => x.IDEmployees != DB.Idemployees).ToList();
+                gridAddEmployees.Visibility = Visibility.Hidden;
+            }
+            else MessageBox.Show("Пустые поля!");
+        }
+        private void BtnBackEmployeesClick(object sender, RoutedEventArgs e)
+        {
+            gridAddEmployees.Visibility = Visibility.Hidden;
+            datagridEmployees.Visibility = Visibility.Visible;
+            gridChangeEmployees.Visibility = Visibility.Hidden;
+        }
+
+        private void BtnAddNewEmployeesClick(object sender, RoutedEventArgs e)
+        {
+            gridAddEmployees.Visibility = Visibility.Visible;
+        }
+
+        private void BtnSaveChangeEmployeesClick(object sender, RoutedEventArgs e)
+        {
+            if (txtLastName_ChangeEmployyes.Text != "" && txtFirstName_ChangeEmployyes.Text != "" &&
+                 comboboxRole_ChangeEmployees.Text != "" && comboboxStatus_ChangeEmployees.Text != "")
+            {
+                //вносим изменения из gridChangeEmployees в бд
+                var attr = DB.GetContext().Employees.Where(x => x.IDEmployees == idemployees).FirstOrDefault();
+
+                attr.LastName = txtLastName_ChangeEmployyes.Text;
+                attr.FirstName = txtFirstName_ChangeEmployyes.Text;
+                attr.MiddleName = txtMiddleName_ChangeEmployees.Text;
+
+                //ищем в таблице StatusEmployees столбец с нужным статусом, затем записываем его id в FKStatusEmployees таблицы Employees
+                var status = DB.GetContext().StatusEmployees.Where(x => x.StatusEmployees1 == comboboxStatus_ChangeEmployees.Text).FirstOrDefault();
+                attr.FKStatusEmployees = status.IDStatusEmployees;
+                var role = DB.GetContext().Role.Where(x => x.Role1 == comboboxRole_ChangeEmployees.Text).FirstOrDefault();
+                attr.FKRole = role.IDRole;
+
+
+                DB.GetContext().SaveChanges();
+
+                MessageBox.Show("Изменения сохранены");
+
+                gridChangeEmployees.Visibility = Visibility.Hidden;
+                datagridEmployees.Visibility = Visibility.Visible;
+                datagridEmployees.ItemsSource = DB.GetContext().Employees.Where(x => x.IDEmployees != DB.Idemployees).ToList();
+            }
+            else MessageBox.Show("Пустые поля!");
+        }
+
+        private void btnLogout(object sender, RoutedEventArgs e)
+        { 
+            First first = new First();
+            first.Show();
+            this.Close();
+        }
+
+        //private void txtPassword_TextChanged(object sender, TextChangedEventArgs e)
+        //{
+        //    passPassword.Password = txtPassword.Text;
+        //}
+
+        //private void PasswordBoxInVisible(object sender, RoutedEventArgs e)
+        //{
+        //    imgInVisible.Visibility = Visibility.Visible;
+        //    imgVisible.Visibility = Visibility.Hidden;
+        //    txtPassword.Visibility = Visibility.Visible;
+        //    txtPassword.Text = passPassword.Password;
+        //    passPassword.Visibility = Visibility.Hidden;
+        //}
+
+        //private void PasswordBoxVisible(object sender, RoutedEventArgs e)
+        //{
+        //    //показать
+        //    imgVisible.Visibility = Visibility.Visible;
+        //    imgInVisible.Visibility = Visibility.Hidden;
+        //    txtPassword.Visibility = Visibility.Hidden;
+        //    passPassword.Visibility = Visibility.Visible;
+        //}
+    }
+}

+ 31 - 0
mateo/Tickets.cs

@@ -0,0 +1,31 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Tickets
+    {
+        public int IDTickets { get; set; }
+        public int FKUser { get; set; }
+        public int FKAttraction { get; set; }
+        public int FKTypeTickets { get; set; }
+        public int FKStatusPuy { get; set; }
+        public int Quantity { get; set; }
+        public decimal Summ { get; set; }
+        public System.DateTime Date { get; set; }
+    
+        public virtual Attraction Attraction { get; set; }
+        public virtual StatusPay StatusPay { get; set; }
+        public virtual TypeTickets TypeTickets { get; set; }
+        public virtual Users Users { get; set; }
+    }
+}

+ 29 - 0
mateo/Type.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Type
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Type()
+        {
+            this.Attraction = new HashSet<Attraction>();
+        }
+    
+        public int IDType { get; set; }
+        public string Type1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Attraction> Attraction { get; set; }
+    }
+}

+ 29 - 0
mateo/TypeTickets.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class TypeTickets
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public TypeTickets()
+        {
+            this.Tickets = new HashSet<Tickets>();
+        }
+    
+        public int IDTypeTickets { get; set; }
+        public string TypeTickets1 { get; set; }
+    
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Tickets> Tickets { get; set; }
+    }
+}

+ 39 - 0
mateo/Users.cs

@@ -0,0 +1,39 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace mateo
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Users
+    {
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+        public Users()
+        {
+            this.History = new HashSet<History>();
+            this.Tickets = new HashSet<Tickets>();
+        }
+    
+        public int IDUsers { get; set; }
+        public string LastName { get; set; }
+        public string FirstName { get; set; }
+        public string MiddleName { get; set; }
+        public byte[] Image { get; set; }
+        public string Login { get; set; }
+        public string Password { get; set; }
+        public int FKCard { get; set; }
+    
+        public virtual Card Card { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<History> History { get; set; }
+        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+        public virtual ICollection<Tickets> Tickets { get; set; }
+    }
+}

binární
mateo/bin/Debug/EntityFramework.SqlServer.dll


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 2093 - 0
mateo/bin/Debug/EntityFramework.SqlServer.xml


binární
mateo/bin/Debug/EntityFramework.dll


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 53236 - 0
mateo/bin/Debug/EntityFramework.xml


binární
mateo/bin/Debug/mateo.exe


+ 13 - 0
mateo/bin/Debug/mateo.exe.config

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <appSettings>
+    <!-- Поставщик -->
+    <add key="provider" value="System.Data.SqlClient" />
+    <!-- Строка подключения -->
+    <add key="conStr" value="Data Source=LAPTOP-1F5OKQJV\SQLEXPRESS;          Initial Catalog=mateo;          Integrated Security=True;          Connect Timeout=30;          Encrypt=False;          TrustServerCertificate=False;          ApplicationIntent=ReadWrite;          MultiSubnetFailover=False" />
+  </appSettings>
+ 
+<connectionStrings><add name="mateoEntities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=LAPTOP-1F5OKQJV\SQLEXPRESS;initial catalog=mateo;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings></configuration>

binární
mateo/bin/Debug/mateo.pdb


binární
mateo/bin/Debug/ru/EntityFramework.resources.dll


binární
mateo/image/card.png


binární
mateo/image/delete.png


binární
mateo/image/exit.png


binární
mateo/image/gmail.png


binární
mateo/image/insta.png


binární
mateo/image/invisible.png


binární
mateo/image/logo.png


binární
mateo/image/logosys.png


binární
mateo/image/logout.png


binární
mateo/image/tickets.png


binární
mateo/image/tickets2.png


binární
mateo/image/visible.png


binární
mateo/image/vk.png


binární
mateo/image/whatsapp.png


+ 238 - 0
mateo/mateo.csproj

@@ -0,0 +1,238 @@
+<?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>{DE2AA9D8-3BAD-41A3-907A-9A5F01444F08}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>mateo</RootNamespace>
+    <AssemblyName>mateo</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="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
+    </Reference>
+    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.ComponentModel.DataAnnotations" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Runtime.Serialization" />
+    <Reference Include="System.Security" />
+    <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="Attraction.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Card.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="DB.cs" />
+    <Compile Include="Employees.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="History.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Model1.Context.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Model1.Context.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Model1.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Model1.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>Model1.edmx</DependentUpon>
+    </Compile>
+    <Compile Include="Role.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="StatusAttraction.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="StatusEmployees.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="StatusPay.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="SysAdmin.xaml.cs">
+      <DependentUpon>SysAdmin.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="sysdiagrams.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Tickets.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Type.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="TypeTickets.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Users.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Page Include="First.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <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="First.xaml.cs">
+      <DependentUpon>First.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="MainWindow.xaml.cs">
+      <DependentUpon>MainWindow.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Page Include="Profile.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="SysAdmin.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Profile.xaml.cs">
+      <DependentUpon>Profile.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>
+    <EntityDeploy Include="Model1.edmx">
+      <Generator>EntityModelCodeGenerator</Generator>
+      <LastGenOutput>Model1.Designer.cs</LastGenOutput>
+    </EntityDeploy>
+    <None Include="Model1.edmx.diagram">
+      <DependentUpon>Model1.edmx</DependentUpon>
+    </None>
+    <None Include="packages.config" />
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\insta.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\logo.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\exit.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\vk.png" />
+    <Resource Include="image\whatsapp.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\gmail.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\logosys.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\invisible.png" />
+    <Resource Include="image\visible.png" />
+    <Resource Include="image\logout.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\tickets.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Resource Include="image\card.png" />
+    <Resource Include="image\delete.png" />
+    <Resource Include="image\tickets2.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Model1.Context.tt">
+      <Generator>TextTemplatingFileGenerator</Generator>
+      <DependentUpon>Model1.edmx</DependentUpon>
+      <LastGenOutput>Model1.Context.cs</LastGenOutput>
+    </Content>
+    <Content Include="Model1.tt">
+      <Generator>TextTemplatingFileGenerator</Generator>
+      <DependentUpon>Model1.edmx</DependentUpon>
+      <LastGenOutput>Model1.cs</LastGenOutput>
+    </Content>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 4 - 0
mateo/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

+ 70 - 0
mateo/obj/Debug/App.g.cs

@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6453F0BE04B0990AC857C7627CD34D6A27593ED0005E189E673475CF58FAFE24"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// App
+    /// </summary>
+    public partial class App : System.Windows.Application {
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            
+            #line 5 "..\..\App.xaml"
+            this.StartupUri = new System.Uri("First.xaml", System.UriKind.Relative);
+            
+            #line default
+            #line hidden
+        }
+        
+        /// <summary>
+        /// Application Entry Point.
+        /// </summary>
+        [System.STAThreadAttribute()]
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public static void Main() {
+            mateo.App app = new mateo.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

+ 70 - 0
mateo/obj/Debug/App.g.i.cs

@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6453F0BE04B0990AC857C7627CD34D6A27593ED0005E189E673475CF58FAFE24"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// App
+    /// </summary>
+    public partial class App : System.Windows.Application {
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            
+            #line 5 "..\..\App.xaml"
+            this.StartupUri = new System.Uri("First.xaml", System.UriKind.Relative);
+            
+            #line default
+            #line hidden
+        }
+        
+        /// <summary>
+        /// Application Entry Point.
+        /// </summary>
+        [System.STAThreadAttribute()]
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public static void Main() {
+            mateo.App app = new mateo.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

binární
mateo/obj/Debug/DesignTimeResolveAssemblyReferences.cache


binární
mateo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


binární
mateo/obj/Debug/First.baml


+ 245 - 0
mateo/obj/Debug/First.g.cs

@@ -0,0 +1,245 @@
+#pragma checksum "..\..\First.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1A1B11D91A679844FA832CF4C351344E8D90CABF6597AADFB047B3568CEAC085"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// First
+    /// </summary>
+    public partial class First : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 11 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button exit;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 20 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_vhod;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 21 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_login;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 23 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox vvod_pass;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 25 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button vhod;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 26 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button registr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_registr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 34 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_LNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 36 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_FNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 38 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_MNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 40 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_login_reg;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 42 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox vvod_pass_reg;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 44 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button registr2;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/first.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\First.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.exit = ((System.Windows.Controls.Button)(target));
+            
+            #line 11 "..\..\First.xaml"
+            this.exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            this.grid_vhod = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 3:
+            this.vvod_login = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            this.vvod_pass = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 5:
+            this.vhod = ((System.Windows.Controls.Button)(target));
+            
+            #line 25 "..\..\First.xaml"
+            this.vhod.Click += new System.Windows.RoutedEventHandler(this.btn_vhod);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            this.registr = ((System.Windows.Controls.Button)(target));
+            
+            #line 26 "..\..\First.xaml"
+            this.registr.Click += new System.Windows.RoutedEventHandler(this.btn_registr);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.grid_registr = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 8:
+            this.vvod_LNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 9:
+            this.vvod_FNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 10:
+            this.vvod_MNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 11:
+            this.vvod_login_reg = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 12:
+            this.vvod_pass_reg = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 13:
+            this.registr2 = ((System.Windows.Controls.Button)(target));
+            
+            #line 44 "..\..\First.xaml"
+            this.registr2.Click += new System.Windows.RoutedEventHandler(this.btn_regist2);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 245 - 0
mateo/obj/Debug/First.g.i.cs

@@ -0,0 +1,245 @@
+#pragma checksum "..\..\First.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "1A1B11D91A679844FA832CF4C351344E8D90CABF6597AADFB047B3568CEAC085"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// First
+    /// </summary>
+    public partial class First : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 11 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button exit;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 20 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_vhod;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 21 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_login;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 23 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox vvod_pass;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 25 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button vhod;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 26 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button registr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_registr;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 34 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_LNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 36 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_FNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 38 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_MNAME;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 40 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox vvod_login_reg;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 42 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox vvod_pass_reg;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 44 "..\..\First.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button registr2;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/first.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\First.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.exit = ((System.Windows.Controls.Button)(target));
+            
+            #line 11 "..\..\First.xaml"
+            this.exit.Click += new System.Windows.RoutedEventHandler(this.btn_exit);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            this.grid_vhod = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 3:
+            this.vvod_login = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            this.vvod_pass = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 5:
+            this.vhod = ((System.Windows.Controls.Button)(target));
+            
+            #line 25 "..\..\First.xaml"
+            this.vhod.Click += new System.Windows.RoutedEventHandler(this.btn_vhod);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            this.registr = ((System.Windows.Controls.Button)(target));
+            
+            #line 26 "..\..\First.xaml"
+            this.registr.Click += new System.Windows.RoutedEventHandler(this.btn_registr);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.grid_registr = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 8:
+            this.vvod_LNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 9:
+            this.vvod_FNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 10:
+            this.vvod_MNAME = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 11:
+            this.vvod_login_reg = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 12:
+            this.vvod_pass_reg = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 13:
+            this.registr2 = ((System.Windows.Controls.Button)(target));
+            
+            #line 44 "..\..\First.xaml"
+            this.registr2.Click += new System.Windows.RoutedEventHandler(this.btn_regist2);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

binární
mateo/obj/Debug/MainWindow.baml


+ 423 - 0
mateo/obj/Debug/MainWindow.g.cs

@@ -0,0 +1,423 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BBB109685AC5F20ADAB43D811A480C0A7FBBD9A5F0F6E1E5DB3F9EBC835D54B8"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 45 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListView listAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 77 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ScrollViewer stackAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 79 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtNameAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 80 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imgAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 81 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtDescriptionAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 82 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.StackPanel stackPriceOld;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 83 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtPriceOld;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 86 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.StackPanel stackPriceBaby;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 87 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtPriceBaby;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 94 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridTickets;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 95 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListView listTickets;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 118 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtSumm;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 133 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Border border_bron;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 134 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_bron;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 138 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtBron_Date;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 145 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_pay;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 146 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_cancel;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/mainwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            
+            #line 12 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_insta);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            
+            #line 16 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_vk);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 20 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_whatsapp);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 24 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_gmail);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 31 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnProfileClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            
+            #line 32 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnUslugiClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 34 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 37 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            
+            #line 40 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnTickets);
+            
+            #line default
+            #line hidden
+            return;
+            case 10:
+            this.listAttraction = ((System.Windows.Controls.ListView)(target));
+            
+            #line 45 "..\..\MainWindow.xaml"
+            this.listAttraction.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ViewAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 11:
+            this.stackAttraction = ((System.Windows.Controls.ScrollViewer)(target));
+            return;
+            case 12:
+            this.txtNameAttraction = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 13:
+            this.imgAttraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 14:
+            this.txtDescriptionAttraction = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 15:
+            this.stackPriceOld = ((System.Windows.Controls.StackPanel)(target));
+            return;
+            case 16:
+            this.txtPriceOld = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 17:
+            
+            #line 84 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddOldAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 18:
+            this.stackPriceBaby = ((System.Windows.Controls.StackPanel)(target));
+            return;
+            case 19:
+            this.txtPriceBaby = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 20:
+            
+            #line 88 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddBabyAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 21:
+            
+            #line 90 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnBackAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 22:
+            this.gridTickets = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 23:
+            this.listTickets = ((System.Windows.Controls.ListView)(target));
+            return;
+            case 27:
+            this.txtSumm = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 28:
+            
+            #line 119 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnPuyAll);
+            
+            #line default
+            #line hidden
+            return;
+            case 29:
+            this.border_bron = ((System.Windows.Controls.Border)(target));
+            return;
+            case 30:
+            this.grid_bron = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 31:
+            this.txtBron_Date = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 32:
+            this.btn_pay = ((System.Windows.Controls.Button)(target));
+            
+            #line 145 "..\..\MainWindow.xaml"
+            this.btn_pay.Click += new System.Windows.RoutedEventHandler(this.btn_pay_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 33:
+            this.btn_cancel = ((System.Windows.Controls.Button)(target));
+            
+            #line 146 "..\..\MainWindow.xaml"
+            this.btn_cancel.Click += new System.Windows.RoutedEventHandler(this.btn_cancel_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 24:
+            
+            #line 106 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnTicketsMinus);
+            
+            #line default
+            #line hidden
+            break;
+            case 25:
+            
+            #line 108 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnTicketsPlus);
+            
+            #line default
+            #line hidden
+            break;
+            case 26:
+            
+            #line 109 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnDeleteTickets);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
+    }
+}
+

+ 423 - 0
mateo/obj/Debug/MainWindow.g.i.cs

@@ -0,0 +1,423 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "BBB109685AC5F20ADAB43D811A480C0A7FBBD9A5F0F6E1E5DB3F9EBC835D54B8"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 45 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListView listAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 77 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ScrollViewer stackAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 79 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtNameAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 80 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imgAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 81 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtDescriptionAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 82 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.StackPanel stackPriceOld;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 83 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtPriceOld;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 86 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.StackPanel stackPriceBaby;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 87 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtPriceBaby;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 94 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridTickets;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 95 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ListView listTickets;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 118 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtSumm;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 133 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Border border_bron;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 134 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_bron;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 138 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtBron_Date;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 145 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_pay;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 146 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_cancel;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/mainwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            
+            #line 12 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_insta);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            
+            #line 16 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_vk);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 20 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_whatsapp);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 24 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_gmail);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 31 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnProfileClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            
+            #line 32 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnUslugiClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 34 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 37 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            
+            #line 40 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnTickets);
+            
+            #line default
+            #line hidden
+            return;
+            case 10:
+            this.listAttraction = ((System.Windows.Controls.ListView)(target));
+            
+            #line 45 "..\..\MainWindow.xaml"
+            this.listAttraction.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ViewAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 11:
+            this.stackAttraction = ((System.Windows.Controls.ScrollViewer)(target));
+            return;
+            case 12:
+            this.txtNameAttraction = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 13:
+            this.imgAttraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 14:
+            this.txtDescriptionAttraction = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 15:
+            this.stackPriceOld = ((System.Windows.Controls.StackPanel)(target));
+            return;
+            case 16:
+            this.txtPriceOld = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 17:
+            
+            #line 84 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddOldAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 18:
+            this.stackPriceBaby = ((System.Windows.Controls.StackPanel)(target));
+            return;
+            case 19:
+            this.txtPriceBaby = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 20:
+            
+            #line 88 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddBabyAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 21:
+            
+            #line 90 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnBackAttraction);
+            
+            #line default
+            #line hidden
+            return;
+            case 22:
+            this.gridTickets = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 23:
+            this.listTickets = ((System.Windows.Controls.ListView)(target));
+            return;
+            case 27:
+            this.txtSumm = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 28:
+            
+            #line 119 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnPuyAll);
+            
+            #line default
+            #line hidden
+            return;
+            case 29:
+            this.border_bron = ((System.Windows.Controls.Border)(target));
+            return;
+            case 30:
+            this.grid_bron = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 31:
+            this.txtBron_Date = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 32:
+            this.btn_pay = ((System.Windows.Controls.Button)(target));
+            
+            #line 145 "..\..\MainWindow.xaml"
+            this.btn_pay.Click += new System.Windows.RoutedEventHandler(this.btn_pay_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 33:
+            this.btn_cancel = ((System.Windows.Controls.Button)(target));
+            
+            #line 146 "..\..\MainWindow.xaml"
+            this.btn_cancel.Click += new System.Windows.RoutedEventHandler(this.btn_cancel_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 24:
+            
+            #line 106 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnTicketsMinus);
+            
+            #line default
+            #line hidden
+            break;
+            case 25:
+            
+            #line 108 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnTicketsPlus);
+            
+            #line default
+            #line hidden
+            break;
+            case 26:
+            
+            #line 109 "..\..\MainWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnDeleteTickets);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
+    }
+}
+

binární
mateo/obj/Debug/Profile.baml


+ 290 - 0
mateo/obj/Debug/Profile.g.cs

@@ -0,0 +1,290 @@
+#pragma checksum "..\..\Profile.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F2D29E3F7F36151A3ED431675B40ED4FD120A214FC0FB271809EC4E3A42CF9D0"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// Profile
+    /// </summary>
+    public partial class Profile : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 45 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image photo_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 46 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_photo;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 47 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_dltphoto;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 48 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock name_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 49 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock balance_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 50 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_balance;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 55 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_balance;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 61 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txt_balanceplus;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 62 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_balanceplus;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 63 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_cancelblnc;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/profile.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\Profile.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            
+            #line 11 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_insta);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            
+            #line 15 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_vk);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 19 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_whatsapp);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 23 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_gmail);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 30 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnProfileClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            
+            #line 31 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnUslugiClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 33 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 36 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            
+            #line 39 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnTickets);
+            
+            #line default
+            #line hidden
+            return;
+            case 10:
+            this.photo_profile = ((System.Windows.Controls.Image)(target));
+            return;
+            case 11:
+            this.btn_photo = ((System.Windows.Controls.Button)(target));
+            
+            #line 46 "..\..\Profile.xaml"
+            this.btn_photo.Click += new System.Windows.RoutedEventHandler(this.btn_photo_click);
+            
+            #line default
+            #line hidden
+            return;
+            case 12:
+            this.btn_dltphoto = ((System.Windows.Controls.Button)(target));
+            
+            #line 47 "..\..\Profile.xaml"
+            this.btn_dltphoto.Click += new System.Windows.RoutedEventHandler(this.btn_deletephoto_click);
+            
+            #line default
+            #line hidden
+            return;
+            case 13:
+            this.name_profile = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 14:
+            this.balance_profile = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 15:
+            this.btn_balance = ((System.Windows.Controls.Button)(target));
+            
+            #line 50 "..\..\Profile.xaml"
+            this.btn_balance.Click += new System.Windows.RoutedEventHandler(this.btn_balance_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 16:
+            this.grid_balance = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 17:
+            this.txt_balanceplus = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 18:
+            this.btn_balanceplus = ((System.Windows.Controls.Button)(target));
+            
+            #line 62 "..\..\Profile.xaml"
+            this.btn_balanceplus.Click += new System.Windows.RoutedEventHandler(this.btn_balanceplus_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            this.btn_cancelblnc = ((System.Windows.Controls.Button)(target));
+            
+            #line 63 "..\..\Profile.xaml"
+            this.btn_cancelblnc.Click += new System.Windows.RoutedEventHandler(this.btn_cancelblnc_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 290 - 0
mateo/obj/Debug/Profile.g.i.cs

@@ -0,0 +1,290 @@
+#pragma checksum "..\..\Profile.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F2D29E3F7F36151A3ED431675B40ED4FD120A214FC0FB271809EC4E3A42CF9D0"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// Profile
+    /// </summary>
+    public partial class Profile : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 45 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image photo_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 46 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_photo;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 47 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_dltphoto;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 48 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock name_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 49 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock balance_profile;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 50 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_balance;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 55 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid grid_balance;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 61 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txt_balanceplus;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 62 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_balanceplus;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 63 "..\..\Profile.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button btn_cancelblnc;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/profile.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\Profile.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            
+            #line 11 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_insta);
+            
+            #line default
+            #line hidden
+            return;
+            case 2:
+            
+            #line 15 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_vk);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 19 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_whatsapp);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 23 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btn_gmail);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 30 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnProfileClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            
+            #line 31 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnUslugiClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 33 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 36 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            
+            #line 39 "..\..\Profile.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnTickets);
+            
+            #line default
+            #line hidden
+            return;
+            case 10:
+            this.photo_profile = ((System.Windows.Controls.Image)(target));
+            return;
+            case 11:
+            this.btn_photo = ((System.Windows.Controls.Button)(target));
+            
+            #line 46 "..\..\Profile.xaml"
+            this.btn_photo.Click += new System.Windows.RoutedEventHandler(this.btn_photo_click);
+            
+            #line default
+            #line hidden
+            return;
+            case 12:
+            this.btn_dltphoto = ((System.Windows.Controls.Button)(target));
+            
+            #line 47 "..\..\Profile.xaml"
+            this.btn_dltphoto.Click += new System.Windows.RoutedEventHandler(this.btn_deletephoto_click);
+            
+            #line default
+            #line hidden
+            return;
+            case 13:
+            this.name_profile = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 14:
+            this.balance_profile = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 15:
+            this.btn_balance = ((System.Windows.Controls.Button)(target));
+            
+            #line 50 "..\..\Profile.xaml"
+            this.btn_balance.Click += new System.Windows.RoutedEventHandler(this.btn_balance_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 16:
+            this.grid_balance = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 17:
+            this.txt_balanceplus = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 18:
+            this.btn_balanceplus = ((System.Windows.Controls.Button)(target));
+            
+            #line 62 "..\..\Profile.xaml"
+            this.btn_balanceplus.Click += new System.Windows.RoutedEventHandler(this.btn_balanceplus_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            this.btn_cancelblnc = ((System.Windows.Controls.Button)(target));
+            
+            #line 63 "..\..\Profile.xaml"
+            this.btn_cancelblnc.Click += new System.Windows.RoutedEventHandler(this.btn_cancelblnc_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

binární
mateo/obj/Debug/SysAdmin.baml


+ 592 - 0
mateo/obj/Debug/SysAdmin.g.cs

@@ -0,0 +1,592 @@
+#pragma checksum "..\..\SysAdmin.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "94AE40D13B4293F721BEE1959CDB7219244555DA5C7D3501F0A5365C25A13ACE"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// SysAdmin
+    /// </summary>
+    public partial class SysAdmin : System.Windows.Window, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 15 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtFio_Admin;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid datagridAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 70 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridAddAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 74 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtName_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 78 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtDescription_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 82 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtQuantity_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 86 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtPriceOld_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 90 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtPriceBaby_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 94 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 99 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxType_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 103 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imageAdd_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 109 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridChangeAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 113 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_NameAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 117 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_Description;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 121 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_Quantity;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 125 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_PriceOldAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 129 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_PriceBabyAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 133 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxChange_StatusAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 138 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxChange_TypeAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 142 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imageChange_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 151 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TabItem tabEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 153 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid datagridEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 172 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridAddEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 176 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName_Employyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 180 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName_Employyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 184 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 188 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxRole_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 195 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 230 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 234 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName_ChangeEmployyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 238 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName_ChangeEmployyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 242 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 246 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxRole_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 253 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/sysadmin.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\SysAdmin.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.txtFio_Admin = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 2:
+            
+            #line 16 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 19 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            this.datagridAttraction = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 6:
+            
+            #line 68 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddNewAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.gridAddAttraction = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 8:
+            this.txtName_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 9:
+            this.txtDescription_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 10:
+            this.txtQuantity_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 11:
+            this.txtPriceOld_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 12:
+            this.txtPriceBaby_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 13:
+            this.comboboxStatus_Attraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 14:
+            this.comboboxType_Attraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 15:
+            this.imageAdd_Attraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 16:
+            
+            #line 104 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddImage);
+            
+            #line default
+            #line hidden
+            return;
+            case 17:
+            
+            #line 105 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 18:
+            
+            #line 106 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            this.gridChangeAttraction = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 20:
+            this.txtChange_NameAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 21:
+            this.txtChange_Description = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 22:
+            this.txtChange_Quantity = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 23:
+            this.txtChange_PriceOldAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 24:
+            this.txtChange_PriceBabyAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 25:
+            this.comboboxChange_StatusAttraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 26:
+            this.comboboxChange_TypeAttraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 27:
+            this.imageChange_Attraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 28:
+            
+            #line 143 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeImageClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 29:
+            
+            #line 144 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSaveChangeClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 30:
+            
+            #line 145 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 31:
+            this.tabEmployees = ((System.Windows.Controls.TabItem)(target));
+            return;
+            case 32:
+            this.datagridEmployees = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 34:
+            
+            #line 170 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddNewEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 35:
+            this.gridAddEmployees = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 36:
+            this.txtLastName_Employyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 37:
+            this.txtFirstName_Employyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 38:
+            this.txtMiddleName_Employees = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 39:
+            this.comboboxRole_Employees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 40:
+            this.comboboxStatus_Employees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 41:
+            
+            #line 226 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 42:
+            
+            #line 227 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 43:
+            this.gridChangeEmployees = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 44:
+            this.txtLastName_ChangeEmployyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 45:
+            this.txtFirstName_ChangeEmployyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 46:
+            this.txtMiddleName_ChangeEmployees = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 47:
+            this.comboboxRole_ChangeEmployees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 48:
+            this.comboboxStatus_ChangeEmployees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 49:
+            
+            #line 260 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSaveChangeEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 50:
+            
+            #line 261 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 5:
+            
+            #line 61 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeAttractionClick);
+            
+            #line default
+            #line hidden
+            break;
+            case 33:
+            
+            #line 163 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeEmployeesClick);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
+    }
+}
+

+ 592 - 0
mateo/obj/Debug/SysAdmin.g.i.cs

@@ -0,0 +1,592 @@
+#pragma checksum "..\..\SysAdmin.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "94AE40D13B4293F721BEE1959CDB7219244555DA5C7D3501F0A5365C25A13ACE"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using mateo;
+
+
+namespace mateo {
+    
+    
+    /// <summary>
+    /// SysAdmin
+    /// </summary>
+    public partial class SysAdmin : System.Windows.Window, System.Windows.Markup.IComponentConnector, System.Windows.Markup.IStyleConnector {
+        
+        
+        #line 15 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBlock txtFio_Admin;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid datagridAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 70 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridAddAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 74 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtName_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 78 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtDescription_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 82 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtQuantity_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 86 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtPriceOld_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 90 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtPriceBaby_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 94 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 99 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxType_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 103 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imageAdd_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 109 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridChangeAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 113 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_NameAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 117 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_Description;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 121 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_Quantity;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 125 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_PriceOldAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 129 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtChange_PriceBabyAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 133 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxChange_StatusAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 138 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxChange_TypeAttraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 142 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Image imageChange_Attraction;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 151 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TabItem tabEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 153 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid datagridEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 172 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridAddEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 176 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName_Employyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 180 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName_Employyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 184 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 188 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxRole_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 195 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_Employees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 230 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Grid gridChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 234 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName_ChangeEmployyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 238 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName_ChangeEmployyes;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 242 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 246 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxRole_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 253 "..\..\SysAdmin.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox comboboxStatus_ChangeEmployees;
+        
+        #line default
+        #line hidden
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/mateo;component/sysadmin.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\SysAdmin.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.txtFio_Admin = ((System.Windows.Controls.TextBlock)(target));
+            return;
+            case 2:
+            
+            #line 16 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnLogout);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 19 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnExit);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            this.datagridAttraction = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 6:
+            
+            #line 68 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddNewAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            this.gridAddAttraction = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 8:
+            this.txtName_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 9:
+            this.txtDescription_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 10:
+            this.txtQuantity_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 11:
+            this.txtPriceOld_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 12:
+            this.txtPriceBaby_Attraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 13:
+            this.comboboxStatus_Attraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 14:
+            this.comboboxType_Attraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 15:
+            this.imageAdd_Attraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 16:
+            
+            #line 104 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddImage);
+            
+            #line default
+            #line hidden
+            return;
+            case 17:
+            
+            #line 105 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 18:
+            
+            #line 106 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            this.gridChangeAttraction = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 20:
+            this.txtChange_NameAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 21:
+            this.txtChange_Description = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 22:
+            this.txtChange_Quantity = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 23:
+            this.txtChange_PriceOldAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 24:
+            this.txtChange_PriceBabyAttraction = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 25:
+            this.comboboxChange_StatusAttraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 26:
+            this.comboboxChange_TypeAttraction = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 27:
+            this.imageChange_Attraction = ((System.Windows.Controls.Image)(target));
+            return;
+            case 28:
+            
+            #line 143 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeImageClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 29:
+            
+            #line 144 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSaveChangeClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 30:
+            
+            #line 145 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackAttractionClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 31:
+            this.tabEmployees = ((System.Windows.Controls.TabItem)(target));
+            return;
+            case 32:
+            this.datagridEmployees = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 34:
+            
+            #line 170 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddNewEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 35:
+            this.gridAddEmployees = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 36:
+            this.txtLastName_Employyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 37:
+            this.txtFirstName_Employyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 38:
+            this.txtMiddleName_Employees = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 39:
+            this.comboboxRole_Employees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 40:
+            this.comboboxStatus_Employees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 41:
+            
+            #line 226 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnAddEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 42:
+            
+            #line 227 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 43:
+            this.gridChangeEmployees = ((System.Windows.Controls.Grid)(target));
+            return;
+            case 44:
+            this.txtLastName_ChangeEmployyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 45:
+            this.txtFirstName_ChangeEmployyes = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 46:
+            this.txtMiddleName_ChangeEmployees = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 47:
+            this.comboboxRole_ChangeEmployees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 48:
+            this.comboboxStatus_ChangeEmployees = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 49:
+            
+            #line 260 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnSaveChangeEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            case 50:
+            
+            #line 261 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnBackEmployeesClick);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        void System.Windows.Markup.IStyleConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 5:
+            
+            #line 61 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeAttractionClick);
+            
+            #line default
+            #line hidden
+            break;
+            case 33:
+            
+            #line 163 "..\..\SysAdmin.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnChangeEmployeesClick);
+            
+            #line default
+            #line hidden
+            break;
+            }
+        }
+    }
+}
+

+ 0 - 0
mateo/obj/Debug/TempPE/Model.Context.cs.dll


binární
mateo/obj/Debug/TempPE/Model.Designer.cs.dll


binární
mateo/obj/Debug/TempPE/Model.cs.dll


+ 0 - 0
mateo/obj/Debug/TempPE/Model1.Context.cs.dll


binární
mateo/obj/Debug/TempPE/Model1.Designer.cs.dll


binární
mateo/obj/Debug/TempPE/Model1.cs.dll


binární
mateo/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


+ 0 - 0
mateo/obj/Debug/TempPE/mateo.Context.cs.dll


binární
mateo/obj/Debug/TempPE/mateo.Designer.cs.dll


binární
mateo/obj/Debug/TempPE/mateo.cs.dll


+ 207 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model.csdl

@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="mateoModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+  <EntityType Name="Attraction">
+    <Key>
+      <PropertyRef Name="IDAttraction" />
+    </Key>
+    <Property Name="IDAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="NameAttraction" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="400" FixedLength="false" Unicode="true" />
+    <Property Name="QuantityAttraction" Type="Int32" Nullable="false" />
+    <Property Name="Price" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
+    <Property Name="FKType" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Type" Relationship="Self.FK_Attraction_Type" FromRole="Attraction" ToRole="Type" />
+    <NavigationProperty Name="BookingAttraction" Relationship="Self.FK_BookingAttraction_Attraction" FromRole="Attraction" ToRole="BookingAttraction" />
+  </EntityType>
+  <EntityType Name="Booking">
+    <Key>
+      <PropertyRef Name="IDBooking" />
+    </Key>
+    <Property Name="IDBooking" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="DateBooking" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="Quantity" Type="Int32" Nullable="false" />
+    <Property Name="FKUsers" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Users" Relationship="Self.FK_Booking_Users" FromRole="Booking" ToRole="Users" />
+    <NavigationProperty Name="BookingAttraction" Relationship="Self.FK_BookingAttraction_Booking" FromRole="Booking" ToRole="BookingAttraction" />
+  </EntityType>
+  <EntityType Name="BookingAttraction">
+    <Key>
+      <PropertyRef Name="IDBookingAttraction" />
+    </Key>
+    <Property Name="IDBookingAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FKBooking" Type="Int32" Nullable="false" />
+    <Property Name="FKAttraction" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_BookingAttraction_Attraction" FromRole="BookingAttraction" ToRole="Attraction" />
+    <NavigationProperty Name="Booking" Relationship="Self.FK_BookingAttraction_Booking" FromRole="BookingAttraction" ToRole="Booking" />
+  </EntityType>
+  <EntityType Name="Card">
+    <Key>
+      <PropertyRef Name="IDCard" />
+    </Key>
+    <Property Name="IDCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="NumberCard" Type="String" MaxLength="19" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Balance" Type="Decimal" Precision="19" Scale="4" />
+    <NavigationProperty Name="Users" Relationship="Self.FK_Users_Card" FromRole="Card" ToRole="Users" />
+  </EntityType>
+  <EntityType Name="Employees">
+    <Key>
+      <PropertyRef Name="IDEmployees" />
+    </Key>
+    <Property Name="IDEmployees" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+    <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FKRole" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Role" Relationship="Self.FK_Employees_Role" FromRole="Employees" ToRole="Role" />
+  </EntityType>
+  <EntityType Name="Role">
+    <Key>
+      <PropertyRef Name="IDRole" />
+    </Key>
+    <Property Name="IDRole" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Role1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Role" FromRole="Role" ToRole="Employees" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="principal_id" Type="Int32" Nullable="false" />
+    <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="version" Type="Int32" />
+    <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
+  </EntityType>
+  <EntityType Name="Type">
+    <Key>
+      <PropertyRef Name="IDType" />
+    </Key>
+    <Property Name="IDType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Type1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_Type" FromRole="Type" ToRole="Attraction" />
+  </EntityType>
+  <EntityType Name="Users">
+    <Key>
+      <PropertyRef Name="IDUsers" />
+    </Key>
+    <Property Name="IDUsers" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+    <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
+    <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FKCard" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Booking" Relationship="Self.FK_Booking_Users" FromRole="Users" ToRole="Booking" />
+    <NavigationProperty Name="Card" Relationship="Self.FK_Users_Card" FromRole="Users" ToRole="Card" />
+  </EntityType>
+  <Association Name="FK_Attraction_Type">
+    <End Role="Type" Type="Self.Type" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Type">
+        <PropertyRef Name="IDType" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BookingAttraction_Attraction">
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+    <End Role="BookingAttraction" Type="Self.BookingAttraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Attraction">
+        <PropertyRef Name="IDAttraction" />
+      </Principal>
+      <Dependent Role="BookingAttraction">
+        <PropertyRef Name="FKAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Booking_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="Booking" Type="Self.Booking" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="Booking">
+        <PropertyRef Name="FKUsers" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BookingAttraction_Booking">
+    <End Role="Booking" Type="Self.Booking" Multiplicity="1" />
+    <End Role="BookingAttraction" Type="Self.BookingAttraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Booking">
+        <PropertyRef Name="IDBooking" />
+      </Principal>
+      <Dependent Role="BookingAttraction">
+        <PropertyRef Name="FKBooking" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Users_Card">
+    <End Role="Card" Type="Self.Card" Multiplicity="1" />
+    <End Role="Users" Type="Self.Users" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Card">
+        <PropertyRef Name="IDCard" />
+      </Principal>
+      <Dependent Role="Users">
+        <PropertyRef Name="FKCard" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_Role">
+    <End Role="Role" Type="Self.Role" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Role">
+        <PropertyRef Name="IDRole" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKRole" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="mateoEntities2" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="Attraction" EntityType="Self.Attraction" />
+    <EntitySet Name="Booking" EntityType="Self.Booking" />
+    <EntitySet Name="BookingAttraction" EntityType="Self.BookingAttraction" />
+    <EntitySet Name="Card" EntityType="Self.Card" />
+    <EntitySet Name="Employees" EntityType="Self.Employees" />
+    <EntitySet Name="Role" EntityType="Self.Role" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+    <EntitySet Name="Type" EntityType="Self.Type" />
+    <EntitySet Name="Users" EntityType="Self.Users" />
+    <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+      <End Role="Type" EntitySet="Type" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BookingAttraction_Attraction" Association="Self.FK_BookingAttraction_Attraction">
+      <End Role="Attraction" EntitySet="Attraction" />
+      <End Role="BookingAttraction" EntitySet="BookingAttraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Booking_Users" Association="Self.FK_Booking_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="Booking" EntitySet="Booking" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BookingAttraction_Booking" Association="Self.FK_BookingAttraction_Booking">
+      <End Role="Booking" EntitySet="Booking" />
+      <End Role="BookingAttraction" EntitySet="BookingAttraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+      <End Role="Card" EntitySet="Card" />
+      <End Role="Users" EntitySet="Users" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+      <End Role="Role" EntitySet="Role" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

+ 99 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model.msl

@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище mateoModelContainer" CdmEntityContainer="mateoEntities2">
+    <EntitySetMapping Name="Attraction">
+      <EntityTypeMapping TypeName="mateoModel.Attraction">
+        <MappingFragment StoreEntitySet="Attraction">
+          <ScalarProperty Name="IDAttraction" ColumnName="IDAttraction" />
+          <ScalarProperty Name="NameAttraction" ColumnName="NameAttraction" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="QuantityAttraction" ColumnName="QuantityAttraction" />
+          <ScalarProperty Name="Price" ColumnName="Price" />
+          <ScalarProperty Name="FKType" ColumnName="FKType" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Booking">
+      <EntityTypeMapping TypeName="mateoModel.Booking">
+        <MappingFragment StoreEntitySet="Booking">
+          <ScalarProperty Name="IDBooking" ColumnName="IDBooking" />
+          <ScalarProperty Name="DateBooking" ColumnName="DateBooking" />
+          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
+          <ScalarProperty Name="FKUsers" ColumnName="FKUsers" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="BookingAttraction">
+      <EntityTypeMapping TypeName="mateoModel.BookingAttraction">
+        <MappingFragment StoreEntitySet="BookingAttraction">
+          <ScalarProperty Name="IDBookingAttraction" ColumnName="IDBookingAttraction" />
+          <ScalarProperty Name="FKBooking" ColumnName="FKBooking" />
+          <ScalarProperty Name="FKAttraction" ColumnName="FKAttraction" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Card">
+      <EntityTypeMapping TypeName="mateoModel.Card">
+        <MappingFragment StoreEntitySet="Card">
+          <ScalarProperty Name="IDCard" ColumnName="IDCard" />
+          <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
+          <ScalarProperty Name="Balance" ColumnName="Balance" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Employees">
+      <EntityTypeMapping TypeName="mateoModel.Employees">
+        <MappingFragment StoreEntitySet="Employees">
+          <ScalarProperty Name="IDEmployees" ColumnName="IDEmployees" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="FKRole" ColumnName="FKRole" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Role">
+      <EntityTypeMapping TypeName="mateoModel.Role">
+        <MappingFragment StoreEntitySet="Role">
+          <ScalarProperty Name="IDRole" ColumnName="IDRole" />
+          <ScalarProperty Name="Role1" ColumnName="Role" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="sysdiagrams">
+      <EntityTypeMapping TypeName="mateoModel.sysdiagrams">
+        <MappingFragment StoreEntitySet="sysdiagrams">
+          <ScalarProperty Name="name" ColumnName="name" />
+          <ScalarProperty Name="principal_id" ColumnName="principal_id" />
+          <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
+          <ScalarProperty Name="version" ColumnName="version" />
+          <ScalarProperty Name="definition" ColumnName="definition" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Type">
+      <EntityTypeMapping TypeName="mateoModel.Type">
+        <MappingFragment StoreEntitySet="Type">
+          <ScalarProperty Name="IDType" ColumnName="IDType" />
+          <ScalarProperty Name="Type1" ColumnName="Type" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Users">
+      <EntityTypeMapping TypeName="mateoModel.Users">
+        <MappingFragment StoreEntitySet="Users">
+          <ScalarProperty Name="IDUsers" ColumnName="IDUsers" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="Image" ColumnName="Image" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="FKCard" ColumnName="FKCard" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 195 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model.ssdl

@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище mateoModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+  <EntityType Name="Attraction">
+    <Key>
+      <PropertyRef Name="IDAttraction" />
+    </Key>
+    <Property Name="IDAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="NameAttraction" Type="nvarchar" MaxLength="100" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="400" />
+    <Property Name="QuantityAttraction" Type="int" Nullable="false" />
+    <Property Name="Price" Type="money" Nullable="false" />
+    <Property Name="FKType" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Booking">
+    <Key>
+      <PropertyRef Name="IDBooking" />
+    </Key>
+    <Property Name="IDBooking" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="DateBooking" Type="datetime" Nullable="false" />
+    <Property Name="Quantity" Type="int" Nullable="false" />
+    <Property Name="FKUsers" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="BookingAttraction">
+    <Key>
+      <PropertyRef Name="IDBookingAttraction" />
+    </Key>
+    <Property Name="IDBookingAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FKBooking" Type="int" Nullable="false" />
+    <Property Name="FKAttraction" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Card">
+    <Key>
+      <PropertyRef Name="IDCard" />
+    </Key>
+    <Property Name="IDCard" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="NumberCard" Type="nvarchar" MaxLength="19" Nullable="false" />
+    <Property Name="Balance" Type="money" />
+  </EntityType>
+  <EntityType Name="Employees">
+    <Key>
+      <PropertyRef Name="IDEmployees" />
+    </Key>
+    <Property Name="IDEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+    <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="FKRole" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Role">
+    <Key>
+      <PropertyRef Name="IDRole" />
+    </Key>
+    <Property Name="IDRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Role" Type="nvarchar" MaxLength="25" Nullable="false" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="principal_id" Type="int" Nullable="false" />
+    <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="version" Type="int" />
+    <Property Name="definition" Type="varbinary(max)" />
+  </EntityType>
+  <EntityType Name="Type">
+    <Key>
+      <PropertyRef Name="IDType" />
+    </Key>
+    <Property Name="IDType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Type" Type="nvarchar" MaxLength="20" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Users">
+    <Key>
+      <PropertyRef Name="IDUsers" />
+    </Key>
+    <Property Name="IDUsers" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+    <Property Name="Image" Type="varbinary(max)" />
+    <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="FKCard" Type="int" Nullable="false" />
+  </EntityType>
+  <Association Name="FK_Attraction_Type">
+    <End Role="Type" Type="Self.Type" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Type">
+        <PropertyRef Name="IDType" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Booking_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="Booking" Type="Self.Booking" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="Booking">
+        <PropertyRef Name="FKUsers" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BookingAttraction_Attraction">
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+    <End Role="BookingAttraction" Type="Self.BookingAttraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Attraction">
+        <PropertyRef Name="IDAttraction" />
+      </Principal>
+      <Dependent Role="BookingAttraction">
+        <PropertyRef Name="FKAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_BookingAttraction_Booking">
+    <End Role="Booking" Type="Self.Booking" Multiplicity="1" />
+    <End Role="BookingAttraction" Type="Self.BookingAttraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Booking">
+        <PropertyRef Name="IDBooking" />
+      </Principal>
+      <Dependent Role="BookingAttraction">
+        <PropertyRef Name="FKBooking" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_Role">
+    <End Role="Role" Type="Self.Role" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Role">
+        <PropertyRef Name="IDRole" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKRole" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Users_Card">
+    <End Role="Card" Type="Self.Card" Multiplicity="1" />
+    <End Role="Users" Type="Self.Users" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Card">
+        <PropertyRef Name="IDCard" />
+      </Principal>
+      <Dependent Role="Users">
+        <PropertyRef Name="FKCard" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="Хранилище mateoModelContainer">
+    <EntitySet Name="Attraction" EntityType="Self.Attraction" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Booking" EntityType="Self.Booking" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="BookingAttraction" EntityType="Self.BookingAttraction" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+      <End Role="Type" EntitySet="Type" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Booking_Users" Association="Self.FK_Booking_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="Booking" EntitySet="Booking" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BookingAttraction_Attraction" Association="Self.FK_BookingAttraction_Attraction">
+      <End Role="Attraction" EntitySet="Attraction" />
+      <End Role="BookingAttraction" EntitySet="BookingAttraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_BookingAttraction_Booking" Association="Self.FK_BookingAttraction_Booking">
+      <End Role="Booking" EntitySet="Booking" />
+      <End Role="BookingAttraction" EntitySet="BookingAttraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+      <End Role="Role" EntitySet="Role" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+      <End Role="Card" EntitySet="Card" />
+      <End Role="Users" EntitySet="Users" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

+ 339 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model1.csdl

@@ -0,0 +1,339 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="mateoModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+  <EntityType Name="Attraction">
+    <Key>
+      <PropertyRef Name="IDAttraction" />
+    </Key>
+    <Property Name="IDAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="NameAttraction" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Description" Type="String" MaxLength="400" FixedLength="false" Unicode="true" />
+    <Property Name="PriceOld" Type="Decimal" Precision="19" Scale="4" />
+    <Property Name="PriceBaby" Type="Decimal" Precision="19" Scale="4" />
+    <Property Name="QuantityAttraction" Type="Int32" Nullable="false" />
+    <Property Name="ImageAttraction" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
+    <Property Name="FKEmployees" Type="Int32" Nullable="false" />
+    <Property Name="FKStatusAttraction" Type="Int32" Nullable="false" />
+    <Property Name="FKType" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Employees" Relationship="Self.FK_Attraction_Employees" FromRole="Attraction" ToRole="Employees" />
+    <NavigationProperty Name="StatusAttraction" Relationship="Self.FK_Attraction_StatusAttraction" FromRole="Attraction" ToRole="StatusAttraction" />
+    <NavigationProperty Name="Type" Relationship="Self.FK_Attraction_Type" FromRole="Attraction" ToRole="Type" />
+    <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_Attraction" FromRole="Attraction" ToRole="Tickets" />
+  </EntityType>
+  <EntityType Name="Card">
+    <Key>
+      <PropertyRef Name="IDCard" />
+    </Key>
+    <Property Name="IDCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="NumberCard" Type="String" MaxLength="19" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Balance" Type="Decimal" Precision="19" Scale="4" />
+    <NavigationProperty Name="Users" Relationship="Self.FK_Users_Card" FromRole="Card" ToRole="Users" />
+  </EntityType>
+  <EntityType Name="Employees">
+    <Key>
+      <PropertyRef Name="IDEmployees" />
+    </Key>
+    <Property Name="IDEmployees" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+    <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FKRole" Type="Int32" Nullable="false" />
+    <Property Name="FKStatusEmployees" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_Employees" FromRole="Employees" ToRole="Attraction" />
+    <NavigationProperty Name="Role" Relationship="Self.FK_Employees_Role" FromRole="Employees" ToRole="Role" />
+    <NavigationProperty Name="StatusEmployees" Relationship="Self.FK_Employees_StatusEmployees" FromRole="Employees" ToRole="StatusEmployees" />
+  </EntityType>
+  <EntityType Name="History">
+    <Key>
+      <PropertyRef Name="IDHistory" />
+    </Key>
+    <Property Name="IDHistory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FKUser" Type="Int32" Nullable="false" />
+    <Property Name="DateTime" Type="DateTime" Nullable="false" Precision="3" />
+    <Property Name="Summ" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
+    <NavigationProperty Name="Users" Relationship="Self.FK_History_Users" FromRole="History" ToRole="Users" />
+  </EntityType>
+  <EntityType Name="Role">
+    <Key>
+      <PropertyRef Name="IDRole" />
+    </Key>
+    <Property Name="IDRole" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Role1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Role" FromRole="Role" ToRole="Employees" />
+  </EntityType>
+  <EntityType Name="StatusAttraction">
+    <Key>
+      <PropertyRef Name="IDStatusAttraction" />
+    </Key>
+    <Property Name="IDStatusAttraction" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="StatusAttraction1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_StatusAttraction" FromRole="StatusAttraction" ToRole="Attraction" />
+  </EntityType>
+  <EntityType Name="StatusEmployees">
+    <Key>
+      <PropertyRef Name="IDStatusEmployees" />
+    </Key>
+    <Property Name="IDStatusEmployees" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="StatusEmployees1" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_StatusEmployees" FromRole="StatusEmployees" ToRole="Employees" />
+  </EntityType>
+  <EntityType Name="StatusPay">
+    <Key>
+      <PropertyRef Name="IDStatusPay" />
+    </Key>
+    <Property Name="IDStatusPay" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="StatusPay1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_StatusPay" FromRole="StatusPay" ToRole="Tickets" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="principal_id" Type="Int32" Nullable="false" />
+    <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="version" Type="Int32" />
+    <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
+  </EntityType>
+  <EntityType Name="Tickets">
+    <Key>
+      <PropertyRef Name="IDTickets" />
+    </Key>
+    <Property Name="IDTickets" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="FKUser" Type="Int32" Nullable="false" />
+    <Property Name="FKAttraction" Type="Int32" Nullable="false" />
+    <Property Name="FKTypeTickets" Type="Int32" Nullable="false" />
+    <Property Name="FKStatusPuy" Type="Int32" Nullable="false" />
+    <Property Name="Quantity" Type="Int32" Nullable="false" />
+    <Property Name="Summ" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
+    <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_Tickets_Attraction" FromRole="Tickets" ToRole="Attraction" />
+    <NavigationProperty Name="StatusPay" Relationship="Self.FK_Tickets_StatusPay" FromRole="Tickets" ToRole="StatusPay" />
+    <NavigationProperty Name="TypeTickets" Relationship="Self.FK_Tickets_TypeTickets" FromRole="Tickets" ToRole="TypeTickets" />
+    <NavigationProperty Name="Users" Relationship="Self.FK_Tickets_Users" FromRole="Tickets" ToRole="Users" />
+  </EntityType>
+  <EntityType Name="Type">
+    <Key>
+      <PropertyRef Name="IDType" />
+    </Key>
+    <Property Name="IDType" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Type1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Attraction" Relationship="Self.FK_Attraction_Type" FromRole="Type" ToRole="Attraction" />
+  </EntityType>
+  <EntityType Name="TypeTickets">
+    <Key>
+      <PropertyRef Name="IDTypeTickets" />
+    </Key>
+    <Property Name="IDTypeTickets" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="TypeTickets1" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_TypeTickets" FromRole="TypeTickets" ToRole="Tickets" />
+  </EntityType>
+  <EntityType Name="Users">
+    <Key>
+      <PropertyRef Name="IDUsers" />
+    </Key>
+    <Property Name="IDUsers" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="LastName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FirstName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="25" FixedLength="false" Unicode="true" />
+    <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
+    <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FKCard" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Card" Relationship="Self.FK_Users_Card" FromRole="Users" ToRole="Card" />
+    <NavigationProperty Name="History" Relationship="Self.FK_History_Users" FromRole="Users" ToRole="History" />
+    <NavigationProperty Name="Tickets" Relationship="Self.FK_Tickets_Users" FromRole="Users" ToRole="Tickets" />
+  </EntityType>
+  <Association Name="FK_Attraction_Employees">
+    <End Role="Employees" Type="Self.Employees" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employees">
+        <PropertyRef Name="IDEmployees" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKEmployees" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Attraction_StatusAttraction">
+    <End Role="StatusAttraction" Type="Self.StatusAttraction" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusAttraction">
+        <PropertyRef Name="IDStatusAttraction" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKStatusAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Attraction_Type">
+    <End Role="Type" Type="Self.Type" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Type">
+        <PropertyRef Name="IDType" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_Attraction">
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Attraction">
+        <PropertyRef Name="IDAttraction" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Users_Card">
+    <End Role="Card" Type="Self.Card" Multiplicity="1" />
+    <End Role="Users" Type="Self.Users" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Card">
+        <PropertyRef Name="IDCard" />
+      </Principal>
+      <Dependent Role="Users">
+        <PropertyRef Name="FKCard" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_Role">
+    <End Role="Role" Type="Self.Role" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Role">
+        <PropertyRef Name="IDRole" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKRole" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_StatusEmployees">
+    <End Role="StatusEmployees" Type="Self.StatusEmployees" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusEmployees">
+        <PropertyRef Name="IDStatusEmployees" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKStatusEmployees" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_History_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="History" Type="Self.History" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="History">
+        <PropertyRef Name="FKUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_StatusPay">
+    <End Role="StatusPay" Type="Self.StatusPay" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusPay">
+        <PropertyRef Name="IDStatusPay" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKStatusPuy" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_TypeTickets">
+    <End Role="TypeTickets" Type="Self.TypeTickets" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="TypeTickets">
+        <PropertyRef Name="IDTypeTickets" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKTypeTickets" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="mateoEntities" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="Attraction" EntityType="Self.Attraction" />
+    <EntitySet Name="Card" EntityType="Self.Card" />
+    <EntitySet Name="Employees" EntityType="Self.Employees" />
+    <EntitySet Name="History" EntityType="Self.History" />
+    <EntitySet Name="Role" EntityType="Self.Role" />
+    <EntitySet Name="StatusAttraction" EntityType="Self.StatusAttraction" />
+    <EntitySet Name="StatusEmployees" EntityType="Self.StatusEmployees" />
+    <EntitySet Name="StatusPay" EntityType="Self.StatusPay" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+    <EntitySet Name="Tickets" EntityType="Self.Tickets" />
+    <EntitySet Name="Type" EntityType="Self.Type" />
+    <EntitySet Name="TypeTickets" EntityType="Self.TypeTickets" />
+    <EntitySet Name="Users" EntityType="Self.Users" />
+    <AssociationSet Name="FK_Attraction_Employees" Association="Self.FK_Attraction_Employees">
+      <End Role="Employees" EntitySet="Employees" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Attraction_StatusAttraction" Association="Self.FK_Attraction_StatusAttraction">
+      <End Role="StatusAttraction" EntitySet="StatusAttraction" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+      <End Role="Type" EntitySet="Type" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_Attraction" Association="Self.FK_Tickets_Attraction">
+      <End Role="Attraction" EntitySet="Attraction" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+      <End Role="Card" EntitySet="Card" />
+      <End Role="Users" EntitySet="Users" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+      <End Role="Role" EntitySet="Role" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_StatusEmployees" Association="Self.FK_Employees_StatusEmployees">
+      <End Role="StatusEmployees" EntitySet="StatusEmployees" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+    <AssociationSet Name="FK_History_Users" Association="Self.FK_History_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="History" EntitySet="History" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_StatusPay" Association="Self.FK_Tickets_StatusPay">
+      <End Role="StatusPay" EntitySet="StatusPay" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_TypeTickets" Association="Self.FK_Tickets_TypeTickets">
+      <End Role="TypeTickets" EntitySet="TypeTickets" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

+ 141 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model1.msl

@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище mateoModelContainer" CdmEntityContainer="mateoEntities">
+    <EntitySetMapping Name="Attraction">
+      <EntityTypeMapping TypeName="mateoModel.Attraction">
+        <MappingFragment StoreEntitySet="Attraction">
+          <ScalarProperty Name="IDAttraction" ColumnName="IDAttraction" />
+          <ScalarProperty Name="NameAttraction" ColumnName="NameAttraction" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="PriceOld" ColumnName="PriceOld" />
+          <ScalarProperty Name="PriceBaby" ColumnName="PriceBaby" />
+          <ScalarProperty Name="QuantityAttraction" ColumnName="QuantityAttraction" />
+          <ScalarProperty Name="ImageAttraction" ColumnName="ImageAttraction" />
+          <ScalarProperty Name="FKEmployees" ColumnName="FKEmployees" />
+          <ScalarProperty Name="FKStatusAttraction" ColumnName="FKStatusAttraction" />
+          <ScalarProperty Name="FKType" ColumnName="FKType" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Card">
+      <EntityTypeMapping TypeName="mateoModel.Card">
+        <MappingFragment StoreEntitySet="Card">
+          <ScalarProperty Name="IDCard" ColumnName="IDCard" />
+          <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
+          <ScalarProperty Name="Balance" ColumnName="Balance" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Employees">
+      <EntityTypeMapping TypeName="mateoModel.Employees">
+        <MappingFragment StoreEntitySet="Employees">
+          <ScalarProperty Name="IDEmployees" ColumnName="IDEmployees" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="FKRole" ColumnName="FKRole" />
+          <ScalarProperty Name="FKStatusEmployees" ColumnName="FKStatusEmployees" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="History">
+      <EntityTypeMapping TypeName="mateoModel.History">
+        <MappingFragment StoreEntitySet="History">
+          <ScalarProperty Name="IDHistory" ColumnName="IDHistory" />
+          <ScalarProperty Name="FKUser" ColumnName="FKUser" />
+          <ScalarProperty Name="DateTime" ColumnName="DateTime" />
+          <ScalarProperty Name="Summ" ColumnName="Summ" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Role">
+      <EntityTypeMapping TypeName="mateoModel.Role">
+        <MappingFragment StoreEntitySet="Role">
+          <ScalarProperty Name="IDRole" ColumnName="IDRole" />
+          <ScalarProperty Name="Role1" ColumnName="Role" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="StatusAttraction">
+      <EntityTypeMapping TypeName="mateoModel.StatusAttraction">
+        <MappingFragment StoreEntitySet="StatusAttraction">
+          <ScalarProperty Name="IDStatusAttraction" ColumnName="IDStatusAttraction" />
+          <ScalarProperty Name="StatusAttraction1" ColumnName="StatusAttraction" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="StatusEmployees">
+      <EntityTypeMapping TypeName="mateoModel.StatusEmployees">
+        <MappingFragment StoreEntitySet="StatusEmployees">
+          <ScalarProperty Name="IDStatusEmployees" ColumnName="IDStatusEmployees" />
+          <ScalarProperty Name="StatusEmployees1" ColumnName="StatusEmployees" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="StatusPay">
+      <EntityTypeMapping TypeName="mateoModel.StatusPay">
+        <MappingFragment StoreEntitySet="StatusPay">
+          <ScalarProperty Name="IDStatusPay" ColumnName="IDStatusPay" />
+          <ScalarProperty Name="StatusPay1" ColumnName="StatusPay" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="sysdiagrams">
+      <EntityTypeMapping TypeName="mateoModel.sysdiagrams">
+        <MappingFragment StoreEntitySet="sysdiagrams">
+          <ScalarProperty Name="name" ColumnName="name" />
+          <ScalarProperty Name="principal_id" ColumnName="principal_id" />
+          <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
+          <ScalarProperty Name="version" ColumnName="version" />
+          <ScalarProperty Name="definition" ColumnName="definition" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Tickets">
+      <EntityTypeMapping TypeName="mateoModel.Tickets">
+        <MappingFragment StoreEntitySet="Tickets">
+          <ScalarProperty Name="IDTickets" ColumnName="IDTickets" />
+          <ScalarProperty Name="FKUser" ColumnName="FKUser" />
+          <ScalarProperty Name="FKAttraction" ColumnName="FKAttraction" />
+          <ScalarProperty Name="FKTypeTickets" ColumnName="FKTypeTickets" />
+          <ScalarProperty Name="FKStatusPuy" ColumnName="FKStatusPuy" />
+          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
+          <ScalarProperty Name="Summ" ColumnName="Summ" />
+          <ScalarProperty Name="Date" ColumnName="Date" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Type">
+      <EntityTypeMapping TypeName="mateoModel.Type">
+        <MappingFragment StoreEntitySet="Type">
+          <ScalarProperty Name="IDType" ColumnName="IDType" />
+          <ScalarProperty Name="Type1" ColumnName="Type" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="TypeTickets">
+      <EntityTypeMapping TypeName="mateoModel.TypeTickets">
+        <MappingFragment StoreEntitySet="TypeTickets">
+          <ScalarProperty Name="IDTypeTickets" ColumnName="IDTypeTickets" />
+          <ScalarProperty Name="TypeTickets1" ColumnName="TypeTickets" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Users">
+      <EntityTypeMapping TypeName="mateoModel.Users">
+        <MappingFragment StoreEntitySet="Users">
+          <ScalarProperty Name="IDUsers" ColumnName="IDUsers" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="Image" ColumnName="Image" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="FKCard" ColumnName="FKCard" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 317 - 0
mateo/obj/Debug/edmxResourcesToEmbed/Model1.ssdl

@@ -0,0 +1,317 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище mateoModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+  <EntityType Name="Attraction">
+    <Key>
+      <PropertyRef Name="IDAttraction" />
+    </Key>
+    <Property Name="IDAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="NameAttraction" Type="nvarchar" MaxLength="100" Nullable="false" />
+    <Property Name="Description" Type="nvarchar" MaxLength="400" />
+    <Property Name="PriceOld" Type="money" />
+    <Property Name="PriceBaby" Type="money" />
+    <Property Name="QuantityAttraction" Type="int" Nullable="false" />
+    <Property Name="ImageAttraction" Type="varbinary(max)" Nullable="false" />
+    <Property Name="FKEmployees" Type="int" Nullable="false" />
+    <Property Name="FKStatusAttraction" Type="int" Nullable="false" />
+    <Property Name="FKType" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Card">
+    <Key>
+      <PropertyRef Name="IDCard" />
+    </Key>
+    <Property Name="IDCard" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="NumberCard" Type="nvarchar" MaxLength="19" Nullable="false" />
+    <Property Name="Balance" Type="money" />
+  </EntityType>
+  <EntityType Name="Employees">
+    <Key>
+      <PropertyRef Name="IDEmployees" />
+    </Key>
+    <Property Name="IDEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+    <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="FKRole" Type="int" Nullable="false" />
+    <Property Name="FKStatusEmployees" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="History">
+    <Key>
+      <PropertyRef Name="IDHistory" />
+    </Key>
+    <Property Name="IDHistory" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FKUser" Type="int" Nullable="false" />
+    <Property Name="DateTime" Type="datetime" Nullable="false" />
+    <Property Name="Summ" Type="money" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Role">
+    <Key>
+      <PropertyRef Name="IDRole" />
+    </Key>
+    <Property Name="IDRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Role" Type="nvarchar" MaxLength="25" Nullable="false" />
+  </EntityType>
+  <EntityType Name="StatusAttraction">
+    <Key>
+      <PropertyRef Name="IDStatusAttraction" />
+    </Key>
+    <Property Name="IDStatusAttraction" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="StatusAttraction" Type="nvarchar" MaxLength="25" Nullable="false" />
+  </EntityType>
+  <EntityType Name="StatusEmployees">
+    <Key>
+      <PropertyRef Name="IDStatusEmployees" />
+    </Key>
+    <Property Name="IDStatusEmployees" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="StatusEmployees" Type="nvarchar" MaxLength="25" Nullable="false" />
+  </EntityType>
+  <EntityType Name="StatusPay">
+    <Key>
+      <PropertyRef Name="IDStatusPay" />
+    </Key>
+    <Property Name="IDStatusPay" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="StatusPay" Type="nvarchar" MaxLength="20" Nullable="false" />
+  </EntityType>
+  <EntityType Name="sysdiagrams">
+    <Key>
+      <PropertyRef Name="diagram_id" />
+    </Key>
+    <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
+    <Property Name="principal_id" Type="int" Nullable="false" />
+    <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="version" Type="int" />
+    <Property Name="definition" Type="varbinary(max)" />
+  </EntityType>
+  <EntityType Name="Tickets">
+    <Key>
+      <PropertyRef Name="IDTickets" />
+    </Key>
+    <Property Name="IDTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="FKUser" Type="int" Nullable="false" />
+    <Property Name="FKAttraction" Type="int" Nullable="false" />
+    <Property Name="FKTypeTickets" Type="int" Nullable="false" />
+    <Property Name="FKStatusPuy" Type="int" Nullable="false" />
+    <Property Name="Quantity" Type="int" Nullable="false" />
+    <Property Name="Summ" Type="money" Nullable="false" />
+    <Property Name="Date" Type="date" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Type">
+    <Key>
+      <PropertyRef Name="IDType" />
+    </Key>
+    <Property Name="IDType" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Type" Type="nvarchar" MaxLength="20" Nullable="false" />
+  </EntityType>
+  <EntityType Name="TypeTickets">
+    <Key>
+      <PropertyRef Name="IDTypeTickets" />
+    </Key>
+    <Property Name="IDTypeTickets" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="TypeTickets" Type="nvarchar" MaxLength="20" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Users">
+    <Key>
+      <PropertyRef Name="IDUsers" />
+    </Key>
+    <Property Name="IDUsers" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="25" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="25" />
+    <Property Name="Image" Type="varbinary(max)" />
+    <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
+    <Property Name="FKCard" Type="int" Nullable="false" />
+  </EntityType>
+  <Association Name="FK_Attraction_Employees">
+    <End Role="Employees" Type="Self.Employees" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employees">
+        <PropertyRef Name="IDEmployees" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKEmployees" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Attraction_StatusAttraction">
+    <End Role="StatusAttraction" Type="Self.StatusAttraction" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusAttraction">
+        <PropertyRef Name="IDStatusAttraction" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKStatusAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Attraction_Type">
+    <End Role="Type" Type="Self.Type" Multiplicity="1" />
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Type">
+        <PropertyRef Name="IDType" />
+      </Principal>
+      <Dependent Role="Attraction">
+        <PropertyRef Name="FKType" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_Role">
+    <End Role="Role" Type="Self.Role" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Role">
+        <PropertyRef Name="IDRole" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKRole" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employees_StatusEmployees">
+    <End Role="StatusEmployees" Type="Self.StatusEmployees" Multiplicity="1" />
+    <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusEmployees">
+        <PropertyRef Name="IDStatusEmployees" />
+      </Principal>
+      <Dependent Role="Employees">
+        <PropertyRef Name="FKStatusEmployees" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_History_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="History" Type="Self.History" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="History">
+        <PropertyRef Name="FKUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_Attraction">
+    <End Role="Attraction" Type="Self.Attraction" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Attraction">
+        <PropertyRef Name="IDAttraction" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKAttraction" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_StatusPay">
+    <End Role="StatusPay" Type="Self.StatusPay" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="StatusPay">
+        <PropertyRef Name="IDStatusPay" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKStatusPuy" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_TypeTickets">
+    <End Role="TypeTickets" Type="Self.TypeTickets" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="TypeTickets">
+        <PropertyRef Name="IDTypeTickets" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKTypeTickets" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Tickets_Users">
+    <End Role="Users" Type="Self.Users" Multiplicity="1" />
+    <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Users">
+        <PropertyRef Name="IDUsers" />
+      </Principal>
+      <Dependent Role="Tickets">
+        <PropertyRef Name="FKUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Users_Card">
+    <End Role="Card" Type="Self.Card" Multiplicity="1" />
+    <End Role="Users" Type="Self.Users" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Card">
+        <PropertyRef Name="IDCard" />
+      </Principal>
+      <Dependent Role="Users">
+        <PropertyRef Name="FKCard" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="Хранилище mateoModelContainer">
+    <EntitySet Name="Attraction" EntityType="Self.Attraction" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="History" EntityType="Self.History" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="StatusAttraction" EntityType="Self.StatusAttraction" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="StatusEmployees" EntityType="Self.StatusEmployees" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="StatusPay" EntityType="Self.StatusPay" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Tickets" EntityType="Self.Tickets" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="TypeTickets" EntityType="Self.TypeTickets" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK_Attraction_Employees" Association="Self.FK_Attraction_Employees">
+      <End Role="Employees" EntitySet="Employees" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Attraction_StatusAttraction" Association="Self.FK_Attraction_StatusAttraction">
+      <End Role="StatusAttraction" EntitySet="StatusAttraction" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Attraction_Type" Association="Self.FK_Attraction_Type">
+      <End Role="Type" EntitySet="Type" />
+      <End Role="Attraction" EntitySet="Attraction" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_Role" Association="Self.FK_Employees_Role">
+      <End Role="Role" EntitySet="Role" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employees_StatusEmployees" Association="Self.FK_Employees_StatusEmployees">
+      <End Role="StatusEmployees" EntitySet="StatusEmployees" />
+      <End Role="Employees" EntitySet="Employees" />
+    </AssociationSet>
+    <AssociationSet Name="FK_History_Users" Association="Self.FK_History_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="History" EntitySet="History" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_Attraction" Association="Self.FK_Tickets_Attraction">
+      <End Role="Attraction" EntitySet="Attraction" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_StatusPay" Association="Self.FK_Tickets_StatusPay">
+      <End Role="StatusPay" EntitySet="StatusPay" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_TypeTickets" Association="Self.FK_Tickets_TypeTickets">
+      <End Role="TypeTickets" EntitySet="TypeTickets" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
+      <End Role="Users" EntitySet="Users" />
+      <End Role="Tickets" EntitySet="Tickets" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Users_Card" Association="Self.FK_Users_Card">
+      <End Role="Card" EntitySet="Card" />
+      <End Role="Users" EntitySet="Users" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

binární
mateo/obj/Debug/mateo.Properties.Resources.resources


binární
mateo/obj/Debug/mateo.csproj.AssemblyReference.cache


+ 0 - 0
mateo/obj/Debug/mateo.csproj.CopyComplete


+ 0 - 0
mateo/obj/Debug/mateo.csproj.CoreCompileInputs.cache


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů