Parcourir la source

Сделала 2 лабораторную

Igor il y a 6 mois
Parent
commit
7bb02a0853

+ 21 - 1
AddEditPage.xaml

@@ -9,6 +9,26 @@
       Title="AddEditPage">
 
     <Grid>
-        <TextBlock Text="Здравствуйте!" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30"></TextBlock>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="200"/>
+            <ColumnDefinition Width="*"/>
+        </Grid.ColumnDefinitions>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="*"/>
+        </Grid.RowDefinitions>
+        <TextBlock Text="Фамилия" HorizontalAlignment="Center" Margin="0,30,0,40"/>
+        <TextBlock Text="Имя" Grid.Row="1" HorizontalAlignment="Center" Margin="0,30,0,40"/>
+        <TextBlock Text="Отчество" Grid.Row="2" HorizontalAlignment="Center" Margin="0,30,0,40"/>
+        <TextBlock Text="Логин" Grid.Row="3" HorizontalAlignment="Center" Margin="0,30,0,40"/>
+        <TextBox MaxLength="100" Grid.Column="1" Margin="0,20,0,40"/>
+        <TextBox MaxLength="50" Grid.Column="1" Grid.Row="1" Margin="0,20,0,40"/>
+        <TextBox MaxLength="100" Grid.Column="1" Grid.Row="2" Margin="0,20,0,40"/>
+        <TextBox MaxLength="15" Grid.Column="1" Grid.Row="3" Margin="0,20,350,40"/>
+
+        <Button Content="Сохранить" Grid.ColumnSpan="2" Grid.Row="4" Name="BtnSave" Click="BtnSave_Click"></Button>
     </Grid>
 </Page>

+ 5 - 0
AddEditPage.xaml.cs

@@ -24,5 +24,10 @@ namespace WpfApp1
         {
             InitializeComponent();
         }
+
+        private void BtnSave_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
     }
 }

+ 1 - 3
App.config

@@ -7,9 +7,7 @@
   <startup>
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
   </startup>
-  <connectionStrings>
-    <add name="user26Entities" connectionString="metadata=res://*/Entities.HAVLAD.csdl|res://*/Entities.HAVLAD.ssdl|res://*/Entities.HAVLAD.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=srv-wsr\IS4;initial catalog=user26;user id=user26;password=user26;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
-  </connectionStrings>
+  <connectionStrings><add name="user26Entities" connectionString="metadata=res://*/Entities.HAVLAD.csdl|res://*/Entities.HAVLAD.ssdl|res://*/Entities.HAVLAD.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=srv-wsr\IS4;initial catalog=user20;user id=user20;password=is4-user20;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /><add name="user20Entities" connectionString="metadata=res://*/Entities.Model1.csdl|res://*/Entities.Model1.ssdl|res://*/Entities.Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=srv-wsr\is4;initial catalog=user20;persist security info=True;user id=user20;password=is4-user20;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
       <parameters>

+ 2 - 2
App.xaml

@@ -8,7 +8,7 @@
             <Setter Property="Margin" Value="5"></Setter>
             <Setter Property="Width" Value="175"></Setter>
             <Setter Property="Height" Value="30"></Setter>
-            <Setter Property="Background" Value="#FF31B1FF"></Setter>
+            <Setter Property="Background" Value="AntiqueWhite"></Setter>
         </Style>
     </Application.Resources>
-</Application>
+</Application>

+ 2 - 3
HotelsPage.xaml → AuthPage.xaml

@@ -1,4 +1,4 @@
-<Page x:Class="WpfApp1.HotelsPage"
+<Page x:Class="WpfApp1.AuthPage"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
@@ -9,7 +9,6 @@
       Title="HotelsPage">
 
     <Grid>
-        <Button Content="Войти" Background="#FF90D5FF"
-                Click="Button_Click"></Button>
+        <Button Content="Войти" Background="#FF90D5FF" Click="Button_Click"></Button>
     </Grid>
 </Page>

+ 3 - 3
HotelsPage.xaml.cs → AuthPage.xaml.cs

@@ -18,16 +18,16 @@ namespace WpfApp1
     /// <summary>
     /// Логика взаимодействия для HotelsPage.xaml
     /// </summary>
-    public partial class HotelsPage : Page
+    public partial class AuthPage : Page
     {
-        public HotelsPage()
+        public AuthPage()
         {
             InitializeComponent();
         }
 
         private void Button_Click(object sender, RoutedEventArgs e)
         {
-            Manager.MainFrame.Navigate(new AddEditPage());
+            Manager.MainFrame.Navigate(new ListHotels());
         }
 
     }

+ 3 - 4
Entities/HAVLAD.Context.cs → Entities/Model1.Context.cs

@@ -13,10 +13,10 @@ namespace WpfApp1.Entities
     using System.Data.Entity;
     using System.Data.Entity.Infrastructure;
     
-    public partial class user26Entities : DbContext
+    public partial class user20Entities : DbContext
     {
-        public user26Entities()
-            : base("name=user26Entities")
+        public user20Entities()
+            : base("name=user20Entities")
         {
         }
     
@@ -27,7 +27,6 @@ namespace WpfApp1.Entities
     
         public virtual DbSet<Executor> Executor { get; set; }
         public virtual DbSet<Manager> Manager { get; set; }
-        public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
         public virtual DbSet<Task> Task { get; set; }
         public virtual DbSet<User> User { get; set; }
     }

+ 1 - 1
Entities/HAVLAD.Context.tt → Entities/Model1.Context.tt

@@ -2,7 +2,7 @@
 <#@ include file="EF6.Utility.CS.ttinclude"#><#@
  output extension=".cs"#><#
 
-const string inputFile = @"HAVLAD.edmx";
+const string inputFile = @"Model1.edmx";
 var textTransform = DynamicTextTransformation.Create(this);
 var code = new CodeGenerationTools(this);
 var ef = new MetadataTools(this);

+ 1 - 1
Entities/HAVLAD.Designer.cs → Entities/Model1.Designer.cs

@@ -1,4 +1,4 @@
-// Создание кода T4 для модели "D:\документы 4\05.04\WpfApp1\Entities\HAVLAD.edmx" включено. 
+// Создание кода T4 для модели "D:\документы 4\05.04\WpfApp1\Entities\Model1.edmx" включено. 
 // Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
 // на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
 // открыта в конструкторе.

+ 0 - 0
Entities/HAVLAD.cs → Entities/Model1.cs


+ 9 - 42
Entities/HAVLAD.edmx → Entities/Model1.edmx

@@ -4,7 +4,7 @@
   <edmx:Runtime>
     <!-- SSDL content -->
     <edmx:StorageModels>
-      <Schema Namespace="Хранилище user26Model" 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">
+      <Schema Namespace="Хранилище user20Model" 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="Executor">
           <Key>
             <PropertyRef Name="ID" />
@@ -28,16 +28,6 @@
           <Property Name="DifficultyCoefficient" Type="float" Nullable="false" />
           <Property Name="ToMoneyCoefficient" Type="float" 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="Task">
           <Key>
             <PropertyRef Name="ID" />
@@ -115,10 +105,9 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
-        <EntityContainer Name="Хранилище user26ModelContainer">
+        <EntityContainer Name="Хранилище user20ModelContainer">
           <EntitySet Name="Executor" EntityType="Self.Executor" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Manager" EntityType="Self.Manager" Schema="dbo" store:Type="Tables" />
-          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Task" EntityType="Self.Task" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
           <AssociationSet Name="executors_fk0" Association="Self.executors_fk0">
@@ -142,7 +131,7 @@
     </edmx:StorageModels>
     <!-- CSDL content -->
     <edmx:ConceptualModels>
-      <Schema Namespace="user26Model" 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">
+      <Schema Namespace="user20Model" 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="Executor">
           <Key>
             <PropertyRef Name="ID" />
@@ -171,16 +160,6 @@
           <NavigationProperty Name="Executor" Relationship="Self.executors_fk0" FromRole="Manager" ToRole="Executor" />
           <NavigationProperty Name="User" Relationship="Self.FK_Manager_User" FromRole="Manager" ToRole="User" />
         </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="Task">
           <Key>
             <PropertyRef Name="ID" />
@@ -261,10 +240,9 @@
             </Dependent>
           </ReferentialConstraint>
         </Association>
-        <EntityContainer Name="user26Entities" annotation:LazyLoadingEnabled="true">
+        <EntityContainer Name="user20Entities" annotation:LazyLoadingEnabled="true">
           <EntitySet Name="Executor" EntityType="Self.Executor" />
           <EntitySet Name="Manager" EntityType="Self.Manager" />
-          <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
           <EntitySet Name="Task" EntityType="Self.Task" />
           <EntitySet Name="User" EntityType="Self.User" />
           <AssociationSet Name="executors_fk0" Association="Self.executors_fk0">
@@ -289,9 +267,9 @@
     <!-- C-S mapping content -->
     <edmx:Mappings>
       <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
-        <EntityContainerMapping StorageEntityContainer="Хранилище user26ModelContainer" CdmEntityContainer="user26Entities">
+        <EntityContainerMapping StorageEntityContainer="Хранилище user20ModelContainer" CdmEntityContainer="user20Entities">
           <EntitySetMapping Name="Executor">
-            <EntityTypeMapping TypeName="user26Model.Executor">
+            <EntityTypeMapping TypeName="user20Model.Executor">
               <MappingFragment StoreEntitySet="Executor">
                 <ScalarProperty Name="ID" ColumnName="ID" />
                 <ScalarProperty Name="ManagerID" ColumnName="ManagerID" />
@@ -300,7 +278,7 @@
             </EntityTypeMapping>
           </EntitySetMapping>
           <EntitySetMapping Name="Manager">
-            <EntityTypeMapping TypeName="user26Model.Manager">
+            <EntityTypeMapping TypeName="user20Model.Manager">
               <MappingFragment StoreEntitySet="Manager">
                 <ScalarProperty Name="ID" ColumnName="ID" />
                 <ScalarProperty Name="JuniorMinimum" ColumnName="JuniorMinimum" />
@@ -315,19 +293,8 @@
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
-          <EntitySetMapping Name="sysdiagrams">
-            <EntityTypeMapping TypeName="user26Model.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="Task">
-            <EntityTypeMapping TypeName="user26Model.Task">
+            <EntityTypeMapping TypeName="user20Model.Task">
               <MappingFragment StoreEntitySet="Task">
                 <ScalarProperty Name="ID" ColumnName="ID" />
                 <ScalarProperty Name="ExecutorID" ColumnName="ExecutorID" />
@@ -345,7 +312,7 @@
             </EntityTypeMapping>
           </EntitySetMapping>
           <EntitySetMapping Name="User">
-            <EntityTypeMapping TypeName="user26Model.User">
+            <EntityTypeMapping TypeName="user20Model.User">
               <MappingFragment StoreEntitySet="User">
                 <ScalarProperty Name="ID" ColumnName="ID" />
                 <ScalarProperty Name="Password" ColumnName="Password" />

+ 9 - 10
Entities/HAVLAD.edmx.diagram → Entities/Model1.edmx.diagram

@@ -4,16 +4,15 @@
   <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
-      <Diagram DiagramId="32d54471a154489fbaa95b7cc485f21f" Name="Diagram1" ZoomLevel="73">
-        <EntityTypeShape EntityType="user26Model.Executor" Width="1.5" PointX="5.25" PointY="6.25" IsExpanded="true" />
-        <EntityTypeShape EntityType="user26Model.Manager" Width="1.5" PointX="3" PointY="7.625" IsExpanded="true" />
-        <EntityTypeShape EntityType="user26Model.sysdiagrams" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
-        <EntityTypeShape EntityType="user26Model.Task" Width="1.5" PointX="7.5" PointY="5.5" IsExpanded="true" />
-        <EntityTypeShape EntityType="user26Model.User" Width="1.5" PointX="0.75" PointY="3.625" IsExpanded="true" />
-        <AssociationConnector Association="user26Model.executors_fk0" ManuallyRouted="false" />
-        <AssociationConnector Association="user26Model.FK_Executor_User" ManuallyRouted="false" />
-        <AssociationConnector Association="user26Model.tasks_fk0" ManuallyRouted="false" />
-        <AssociationConnector Association="user26Model.FK_Manager_User" ManuallyRouted="false" />
+      <Diagram DiagramId="f2c92dca12d04d629ffa2def924dac47" Name="Diagram1">
+        <EntityTypeShape EntityType="user20Model.Executor" Width="1.5" PointX="5.25" PointY="6.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="user20Model.Manager" Width="1.5" PointX="3" PointY="7.625" IsExpanded="true" />
+        <EntityTypeShape EntityType="user20Model.Task" Width="1.5" PointX="7.5" PointY="5.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="user20Model.User" Width="1.5" PointX="0.75" PointY="3.625" IsExpanded="true" />
+        <AssociationConnector Association="user20Model.executors_fk0" ManuallyRouted="false" />
+        <AssociationConnector Association="user20Model.FK_Executor_User" ManuallyRouted="false" />
+        <AssociationConnector Association="user20Model.tasks_fk0" ManuallyRouted="false" />
+        <AssociationConnector Association="user20Model.FK_Manager_User" ManuallyRouted="false" />
       </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>

+ 1 - 1
Entities/HAVLAD.tt → Entities/Model1.tt

@@ -2,7 +2,7 @@
 <#@ include file="EF6.Utility.CS.ttinclude"#><#@ 
  output extension=".cs"#><#
 
-const string inputFile = @"HAVLAD.edmx";
+const string inputFile = @"Model1.edmx";
 var textTransform = DynamicTextTransformation.Create(this);
 var code = new CodeGenerationTools(this);
 var ef = new MetadataTools(this);

+ 0 - 23
Entities/sysdiagrams.cs

@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-//     Этот код создан по шаблону.
-//
-//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
-//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace WpfApp1.Entities
-{
-    using System;
-    using System.Collections.Generic;
-    
-    public partial class sysdiagrams
-    {
-        public string name { get; set; }
-        public int principal_id { get; set; }
-        public int diagram_id { get; set; }
-        public Nullable<int> version { get; set; }
-        public byte[] definition { get; set; }
-    }
-}

+ 35 - 0
ListHotels.xaml

@@ -0,0 +1,35 @@
+<Page x:Class="WpfApp1.ListHotels"
+      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:local="clr-namespace:WpfApp1"
+      mc:Ignorable="d" 
+      d:DesignHeight="450" d:DesignWidth="800"
+      Title="ListHotels">
+
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="377"/>
+            <RowDefinition Height="50"/>
+        </Grid.RowDefinitions>
+        <DataGrid x:Name="DGridHotels" AutoGenerateColumns = "false" IsReadOnly="True">
+            <DataGrid.Columns>
+                <DataGridTextColumn Header="Фамилия" Binding="{Binding FirstName}" Width="160"></DataGridTextColumn>
+                <DataGridTextColumn Header="Имя" Binding="{Binding MiddleName}" Width="150"></DataGridTextColumn>
+                <DataGridTextColumn Header="Отчество" Binding="{Binding LastName}" Width="160"></DataGridTextColumn>
+                <DataGridTextColumn Header="Логин" Binding="{Binding Login}" Width="180"></DataGridTextColumn>
+                <DataGridCheckBoxColumn Header="Уволен" Binding="{Binding IsDeleted}" Width="150"></DataGridCheckBoxColumn>
+                <DataGridTemplateColumn Width="auto">
+                    <DataGridTemplateColumn.CellTemplate>
+                        <DataTemplate>
+                            <Button Content="Редактировать" Name="BtnEdit" Click="BtnEdit_Click"></Button>
+                        </DataTemplate>
+                    </DataGridTemplateColumn.CellTemplate>
+                </DataGridTemplateColumn>
+            </DataGrid.Columns>
+        </DataGrid>
+        <Button Content="Добавить" Grid.Row="1" HorizontalAlignment="Left" Name="BtnAdd" Click="BtnAdd_Click"></Button>
+        <Button Content="Удалить" Grid.Row="1" HorizontalAlignment="Right" Name="BtnDelete" Click="BtnDelete_Click"></Button>
+    </Grid>
+</Page>

+ 43 - 0
ListHotels.xaml.cs

@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace WpfApp1
+{
+    /// <summary>
+    /// Логика взаимодействия для ListHotels.xaml
+    /// </summary>
+    public partial class ListHotels : Page
+    {
+        public ListHotels()
+        {
+            InitializeComponent();
+            DGridHotels.ItemsSource = new Entities.user20Entities().User.ToList();
+        }
+        private void BtnEdit_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void BtnAdd_Click(object sender, RoutedEventArgs e)
+        {
+            Manager.MainFrame.Navigate(new AddEditPage());
+        }
+
+        private void BtnDelete_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+    }
+}

+ 1 - 1
MainWindow.xaml.cs

@@ -24,7 +24,7 @@ namespace WpfApp1
         public MainWindow()
         {
             InitializeComponent();
-            MainFrame.Navigate(new HotelsPage());
+            MainFrame.Navigate(new AuthPage());
             Manager.MainFrame = MainFrame;
         }
 

+ 35 - 31
WpfApp1.csproj

@@ -69,7 +69,11 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
-    <Page Include="HotelsPage.xaml">
+    <Page Include="AuthPage.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="ListHotels.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
@@ -84,38 +88,38 @@
       <DependentUpon>App.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Compile Include="AuthPage.xaml.cs">
+      <DependentUpon>AuthPage.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Entities\Executor.cs">
-      <DependentUpon>HAVLAD.tt</DependentUpon>
+      <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
-    <Compile Include="Entities\HAVLAD.Context.cs">
+    <Compile Include="Entities\Manager.cs">
+      <DependentUpon>Model1.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Entities\Model1.Context.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>HAVLAD.Context.tt</DependentUpon>
+      <DependentUpon>Model1.Context.tt</DependentUpon>
     </Compile>
-    <Compile Include="Entities\HAVLAD.cs">
+    <Compile Include="Entities\Model1.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>HAVLAD.tt</DependentUpon>
+      <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
-    <Compile Include="Entities\HAVLAD.Designer.cs">
+    <Compile Include="Entities\Model1.Designer.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>HAVLAD.edmx</DependentUpon>
-    </Compile>
-    <Compile Include="Entities\Manager.cs">
-      <DependentUpon>HAVLAD.tt</DependentUpon>
-    </Compile>
-    <Compile Include="Entities\sysdiagrams.cs">
-      <DependentUpon>HAVLAD.tt</DependentUpon>
+      <DependentUpon>Model1.edmx</DependentUpon>
     </Compile>
     <Compile Include="Entities\Task.cs">
-      <DependentUpon>HAVLAD.tt</DependentUpon>
+      <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
     <Compile Include="Entities\User.cs">
-      <DependentUpon>HAVLAD.tt</DependentUpon>
+      <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
-    <Compile Include="HotelsPage.xaml.cs">
-      <DependentUpon>HotelsPage.xaml</DependentUpon>
+    <Compile Include="ListHotels.xaml.cs">
+      <DependentUpon>ListHotels.xaml</DependentUpon>
     </Compile>
     <Compile Include="MainWindow.xaml.cs">
       <DependentUpon>MainWindow.xaml</DependentUpon>
@@ -141,12 +145,12 @@
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     </EmbeddedResource>
-    <EntityDeploy Include="Entities\HAVLAD.edmx">
+    <EntityDeploy Include="Entities\Model1.edmx">
       <Generator>EntityModelCodeGenerator</Generator>
-      <LastGenOutput>HAVLAD.Designer.cs</LastGenOutput>
+      <LastGenOutput>Model1.Designer.cs</LastGenOutput>
     </EntityDeploy>
-    <None Include="Entities\HAVLAD.edmx.diagram">
-      <DependentUpon>HAVLAD.edmx</DependentUpon>
+    <None Include="Entities\Model1.edmx.diagram">
+      <DependentUpon>Model1.edmx</DependentUpon>
     </None>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
@@ -161,19 +165,19 @@
     <Resource Include="Resources\logo.png" />
   </ItemGroup>
   <ItemGroup>
-    <Content Include="Entities\HAVLAD.Context.tt">
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Entities\Model1.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
-      <LastGenOutput>HAVLAD.Context.cs</LastGenOutput>
-      <DependentUpon>HAVLAD.edmx</DependentUpon>
+      <DependentUpon>Model1.edmx</DependentUpon>
+      <LastGenOutput>Model1.Context.cs</LastGenOutput>
     </Content>
-    <Content Include="Entities\HAVLAD.tt">
+    <Content Include="Entities\Model1.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
-      <DependentUpon>HAVLAD.edmx</DependentUpon>
-      <LastGenOutput>HAVLAD.cs</LastGenOutput>
+      <DependentUpon>Model1.edmx</DependentUpon>
+      <LastGenOutput>Model1.cs</LastGenOutput>
     </Content>
   </ItemGroup>
-  <ItemGroup>
-    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
-  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>