瀏覽代碼

first commit

Калашникова Юлия Алексеевна 3 年之前
當前提交
bd3088b93b
共有 100 個文件被更改,包括 61407 次插入0 次删除
  1. 21 0
      .vs/Firewatch 2.0/project-colors.json
  2. 二進制
      .vs/Firewatch 2.0/v17/.suo
  3. 二進制
      .vs/Firewatch 2.0/v17/TestStore/0/000.testlog
  4. 二進制
      .vs/Firewatch 2.0/v17/TestStore/0/testlog.manifest
  5. 31 0
      Firewatch 2.0.sln
  6. 23 0
      Firewatch 2.0/App.config
  7. 9 0
      Firewatch 2.0/App.xaml
  8. 17 0
      Firewatch 2.0/App.xaml.cs
  9. 19 0
      Firewatch 2.0/AuthorizationWindow.xaml
  10. 74 0
      Firewatch 2.0/AuthorizationWindow.xaml.cs
  11. 28 0
      Firewatch 2.0/Fire.cs
  12. 25 0
      Firewatch 2.0/FireWindow.xaml
  13. 57 0
      Firewatch 2.0/FireWindow.xaml.cs
  14. 32 0
      Firewatch 2.0/Firehouse.cs
  15. 15 0
      Firewatch 2.0/FirehouseWindow.xaml
  16. 66 0
      Firewatch 2.0/FirehouseWindow.xaml.cs
  17. 25 0
      Firewatch 2.0/Fireman.cs
  18. 21 0
      Firewatch 2.0/FiremanWindow.xaml
  19. 56 0
      Firewatch 2.0/FiremanWindow.xaml.cs
  20. 221 0
      Firewatch 2.0/Firewatch 2.0.csproj
  21. 100 0
      Firewatch 2.0/FirewatchWindow.xaml
  22. 168 0
      Firewatch 2.0/FirewatchWindow.xaml.cs
  23. 30 0
      Firewatch 2.0/Forest.cs
  24. 17 0
      Firewatch 2.0/ForestWindow.xaml
  25. 49 0
      Firewatch 2.0/ForestWindow.xaml.cs
  26. 13 0
      Firewatch 2.0/Helper.cs
  27. 17 0
      Firewatch 2.0/NewPassWindow.xaml
  28. 70 0
      Firewatch 2.0/NewPassWindow.xaml.cs
  29. 55 0
      Firewatch 2.0/Properties/AssemblyInfo.cs
  30. 71 0
      Firewatch 2.0/Properties/Resources.Designer.cs
  31. 117 0
      Firewatch 2.0/Properties/Resources.resx
  32. 30 0
      Firewatch 2.0/Properties/Settings.Designer.cs
  33. 7 0
      Firewatch 2.0/Properties/Settings.settings
  34. 22 0
      Firewatch 2.0/RegistrationWindow.xaml
  35. 69 0
      Firewatch 2.0/RegistrationWindow.xaml.cs
  36. 24 0
      Firewatch 2.0/StaffIS.cs
  37. 31 0
      Firewatch 2.0/Team.cs
  38. 17 0
      Firewatch 2.0/TeamWindow.xaml
  39. 56 0
      Firewatch 2.0/TeamWindow.xaml.cs
  40. 二進制
      Firewatch 2.0/bin/Debug/EntityFramework.SqlServer.dll
  41. 2093 0
      Firewatch 2.0/bin/Debug/EntityFramework.SqlServer.xml
  42. 二進制
      Firewatch 2.0/bin/Debug/EntityFramework.dll
  43. 53236 0
      Firewatch 2.0/bin/Debug/EntityFramework.xml
  44. 二進制
      Firewatch 2.0/bin/Debug/Firewatch 2.0.exe
  45. 23 0
      Firewatch 2.0/bin/Debug/Firewatch 2.0.exe.config
  46. 二進制
      Firewatch 2.0/bin/Debug/Firewatch 2.0.pdb
  47. 二進制
      Firewatch 2.0/bin/Debug/ru/EntityFramework.resources.dll
  48. 35 0
      Firewatch 2.0/dbDE.Context.cs
  49. 636 0
      Firewatch 2.0/dbDE.Context.tt
  50. 10 0
      Firewatch 2.0/dbDE.Designer.cs
  51. 9 0
      Firewatch 2.0/dbDE.cs
  52. 368 0
      Firewatch 2.0/dbDE.edmx
  53. 21 0
      Firewatch 2.0/dbDE.edmx.diagram
  54. 733 0
      Firewatch 2.0/dbDE.tt
  55. 4 0
      Firewatch 2.0/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
  56. 70 0
      Firewatch 2.0/obj/Debug/App.g.cs
  57. 70 0
      Firewatch 2.0/obj/Debug/App.g.i.cs
  58. 二進制
      Firewatch 2.0/obj/Debug/AuthorizationWindow.baml
  59. 124 0
      Firewatch 2.0/obj/Debug/AuthorizationWindow.g.cs
  60. 124 0
      Firewatch 2.0/obj/Debug/AuthorizationWindow.g.i.cs
  61. 二進制
      Firewatch 2.0/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  62. 二進制
      Firewatch 2.0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  63. 二進制
      Firewatch 2.0/obj/Debug/FireWindow.baml
  64. 160 0
      Firewatch 2.0/obj/Debug/FireWindow.g.cs
  65. 160 0
      Firewatch 2.0/obj/Debug/FireWindow.g.i.cs
  66. 二進制
      Firewatch 2.0/obj/Debug/FirehouseWindow.baml
  67. 105 0
      Firewatch 2.0/obj/Debug/FirehouseWindow.g.cs
  68. 105 0
      Firewatch 2.0/obj/Debug/FirehouseWindow.g.i.cs
  69. 二進制
      Firewatch 2.0/obj/Debug/FiremanWindow.baml
  70. 138 0
      Firewatch 2.0/obj/Debug/FiremanWindow.g.cs
  71. 138 0
      Firewatch 2.0/obj/Debug/FiremanWindow.g.i.cs
  72. 二進制
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.AssemblyReference.cache
  73. 0 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.CopyComplete
  74. 1 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.CoreCompileInputs.cache
  75. 39 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.FileListAbsolute.txt
  76. 二進制
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.GenerateResource.cache
  77. 0 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.SuggestedBindingRedirects.cache
  78. 二進制
      Firewatch 2.0/obj/Debug/Firewatch 2.0.exe
  79. 二進制
      Firewatch 2.0/obj/Debug/Firewatch 2.0.g.resources
  80. 二進制
      Firewatch 2.0/obj/Debug/Firewatch 2.0.pdb
  81. 14 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_Content.g.cs
  82. 14 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_Content.g.i.cs
  83. 20 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.cache
  84. 20 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.i.cache
  85. 5 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.i.lref
  86. 12 0
      Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.lref
  87. 二進制
      Firewatch 2.0/obj/Debug/FirewatchWindow.baml
  88. 264 0
      Firewatch 2.0/obj/Debug/FirewatchWindow.g.cs
  89. 264 0
      Firewatch 2.0/obj/Debug/FirewatchWindow.g.i.cs
  90. 75 0
      Firewatch 2.0/obj/Debug/FirewatchWindow1xaml.g.i.cs
  91. 二進制
      Firewatch 2.0/obj/Debug/Firewatch_2._0.Properties.Resources.resources
  92. 二進制
      Firewatch 2.0/obj/Debug/ForestWindow.baml
  93. 116 0
      Firewatch 2.0/obj/Debug/ForestWindow.g.cs
  94. 116 0
      Firewatch 2.0/obj/Debug/ForestWindow.g.i.cs
  95. 75 0
      Firewatch 2.0/obj/Debug/MainWindow.g.i.cs
  96. 二進制
      Firewatch 2.0/obj/Debug/NewPassWindow.baml
  97. 116 0
      Firewatch 2.0/obj/Debug/NewPassWindow.g.cs
  98. 116 0
      Firewatch 2.0/obj/Debug/NewPassWindow.g.i.cs
  99. 75 0
      Firewatch 2.0/obj/Debug/NewPassWindow1xaml.g.i.cs
  100. 0 0
      Firewatch 2.0/obj/Debug/RegistrationWindow.baml

+ 21 - 0
.vs/Firewatch 2.0/project-colors.json

@@ -0,0 +1,21 @@
+{
+  "Version": 1,
+  "ProjectMap": {
+    "1094ffa9-4d84-4d74-826d-3f8e20d93615": {
+      "ProjectGuid": "1094ffa9-4d84-4d74-826d-3f8e20d93615",
+      "DisplayName": "Firewatch 2.0",
+      "ColorIndex": 0
+    },
+    "ac02f444-3af9-4f22-bd68-298e322d3835": {
+      "ProjectGuid": "ac02f444-3af9-4f22-bd68-298e322d3835",
+      "DisplayName": "UnitTestProject1",
+      "ColorIndex": 1
+    },
+    "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": {
+      "ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3",
+      "DisplayName": "Прочие файлы",
+      "ColorIndex": -1
+    }
+  },
+  "NextColorIndex": 2
+}

二進制
.vs/Firewatch 2.0/v17/.suo


二進制
.vs/Firewatch 2.0/v17/TestStore/0/000.testlog


二進制
.vs/Firewatch 2.0/v17/TestStore/0/testlog.manifest


+ 31 - 0
Firewatch 2.0.sln

@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.0.32126.317
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Firewatch 2.0", "Firewatch 2.0\Firewatch 2.0.csproj", "{1094FFA9-4D84-4D74-826D-3F8E20D93615}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestProject1", "UnitTestProject1\UnitTestProject1.csproj", "{AC02F444-3AF9-4F22-BD68-298E322D3835}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{1094FFA9-4D84-4D74-826D-3F8E20D93615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{1094FFA9-4D84-4D74-826D-3F8E20D93615}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{1094FFA9-4D84-4D74-826D-3F8E20D93615}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{1094FFA9-4D84-4D74-826D-3F8E20D93615}.Release|Any CPU.Build.0 = Release|Any CPU
+		{AC02F444-3AF9-4F22-BD68-298E322D3835}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{AC02F444-3AF9-4F22-BD68-298E322D3835}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{AC02F444-3AF9-4F22-BD68-298E322D3835}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{AC02F444-3AF9-4F22-BD68-298E322D3835}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {B3869CDF-6A7E-4148-822B-678DD16DAF3B}
+	EndGlobalSection
+EndGlobal

+ 23 - 0
Firewatch 2.0/App.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <connectionStrings>
+    <add name="dbData" connectionString="metadata=res://*/dbDE.csdl|res://*/dbDE.ssdl|res://*/dbDE.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;initial catalog=gr601_kayual;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+  </connectionStrings>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+</configuration>

+ 9 - 0
Firewatch 2.0/App.xaml

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

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

+ 19 - 0
Firewatch 2.0/AuthorizationWindow.xaml

@@ -0,0 +1,19 @@
+<Window x:Class="Firewatch_2._0.AuthorizationWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Авторизация" Height="190" Width="553">
+    <Grid Height="164" Margin="0,0,0.2,-4" VerticalAlignment="Top">
+        <TextBox x:Name="txtloginBox" Grid.Row="0" HorizontalAlignment="Left" Height="25" Margin="72,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="234"/>
+        <PasswordBox x:Name="txtpasswordBox" HorizontalAlignment="Left" Height="25" Margin="72,60,0,0" VerticalAlignment="Top" Width="234"/>
+        <Button Content="Войти" Grid.Column="0" HorizontalAlignment="Left" Height="30" Margin="20,105,0,0" VerticalAlignment="Top" Width="108" Click="Authorization_Click"/>
+        <Button Content="Регистрация" HorizontalAlignment="Left" Height="30" Margin="146,105,0,0" VerticalAlignment="Top" Width="160" Click="Registration_Click"/>
+        <TextBlock HorizontalAlignment="Left" Height="20" Margin="20,25,0,0" TextWrapping="Wrap" Text="Логин:" VerticalAlignment="Top" Width="47"/>
+        <TextBlock HorizontalAlignment="Left" Height="22" Margin="20,63,0,0" TextWrapping="Wrap" Text="Пароль:" VerticalAlignment="Top" Width="47"/>
+        <TextBlock HorizontalAlignment="Left" Height="65" Margin="324,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198" TextAlignment="Center"><Run Language="ru-ru" Text="Если вы забыли свой пароль, то нажмите на кнопку &quot;Забыли пароль?&quot;"/></TextBlock>
+        <Button Content="Забыли пароль?" HorizontalAlignment="Left" Height="30" Margin="327,105,0,0" VerticalAlignment="Top" Width="195" Click="NewPass"/>
+    </Grid>
+</Window>

+ 74 - 0
Firewatch 2.0/AuthorizationWindow.xaml.cs

@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для AuthorizationWindow.xaml
+    /// </summary>
+    public partial class AuthorizationWindow : Window
+    {
+        dbData db = new dbData();
+
+        public AuthorizationWindow()
+        {
+            InitializeComponent();
+        }
+
+        public void Authorization_Click(object sender, RoutedEventArgs e)
+        {
+            Auth(txtloginBox.Text.Trim(), txtpasswordBox.Password.Trim());
+        }
+
+        public bool Auth(string login, string password)
+        {
+            if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password))
+            {
+                MessageBox.Show("Введите логин и пароль");
+                return false;
+            }
+
+            using (dbData db = new dbData())
+            {
+                var user = db.StaffISs
+                    .AsNoTracking()
+                    .FirstOrDefault(u => u.Login == txtloginBox.Text && u.Password == txtpasswordBox.Password);
+
+                if (user == null)
+                {
+                    MessageBox.Show("Пользователь с такими данными не найден");
+                    return false;
+                }
+
+                FirewatchWindow wa = new FirewatchWindow();
+                wa.Show();
+                Close();
+
+                return true;
+            }
+        }
+
+        private void Registration_Click(object sender, RoutedEventArgs e)
+        {
+            RegistrationWindow rw = new RegistrationWindow();
+            rw.Show();
+        }
+
+        private void NewPass(object sender, RoutedEventArgs e)
+        {
+            NewPassWindow newPass = new NewPassWindow();
+            newPass.Show();
+        }
+    }
+}

+ 28 - 0
Firewatch 2.0/Fire.cs

@@ -0,0 +1,28 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Firewatch_2._0
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Fire
+    {
+        public int Fire_ID { get; set; }
+        public int Area { get; set; }
+        public System.DateTime StartDate { get; set; }
+        public Nullable<System.DateTime> EndDate { get; set; }
+        public int FirePower { get; set; }
+        public Nullable<int> FKForestID { get; set; }
+        public Nullable<int> FKFirehouseID { get; set; }
+    
+        public virtual Firehouse Firehouse { get; set; }
+        public virtual Forest Forest { get; set; }
+    }
+}

+ 25 - 0
Firewatch 2.0/FireWindow.xaml

@@ -0,0 +1,25 @@
+<Window x:Class="Firewatch_2._0.FireWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Окно пожара" Height="293" Width="355">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,141,0,0" TextWrapping="Wrap" Text="Лес:" VerticalAlignment="Top" Width="74"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,106,0,0" TextWrapping="Wrap" Text="Сила пожара:" VerticalAlignment="Top" Width="106"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,76,0,0" TextWrapping="Wrap" Text="Окончание пожара:" VerticalAlignment="Top" Width="111"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,48,0,0" TextWrapping="Wrap" Text="Начало пожара:" VerticalAlignment="Top" Width="125"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,18,0,0" TextWrapping="Wrap" Text="Площадь:" VerticalAlignment="Top" Width="74"/>
+        <TextBox Text="{Binding Area}" x:Name="txtAreaFire" HorizontalAlignment="Left" Height="19" Margin="126,18,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding StartDate}" x:Name="txtStartDateFire" HorizontalAlignment="Left" Height="19" Margin="126,48,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding EndDate}" x:Name="txtEndDateFire" HorizontalAlignment="Left" Height="19" Margin="126,76,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding FirePower}" x:Name="txtFirePowerFire" HorizontalAlignment="Left" Height="19" Margin="126,106,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <ComboBox Name="CmbForest" DisplayMemberPath="ForestTitle" SelectedIndex="0" SelectedItem="{Binding Forest}" Text="{Binding Forest.ForestTitle}" HorizontalAlignment="Left" Height="21" Margin="126,138,0,0" VerticalAlignment="Top" Width="198"/>
+        <ComboBox Name="CmbFirehouse" DisplayMemberPath="FirehouseTitle" SelectedIndex="0" SelectedItem="{Binding Firehouse}" Text="{Binding Firehouse.FirehouseTitle}" HorizontalAlignment="Left" Height="21" Margin="126,172,0,0" VerticalAlignment="Top" Width="198"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="25,211,0,0" VerticalAlignment="Top" Width="125" Click="Fire_OK"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="174,211,0,0" VerticalAlignment="Top" Width="125" Click="Fire_Close"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,172,0,0" TextWrapping="Wrap" Text="Пожарная часть:" VerticalAlignment="Top" Width="111"/>
+    </Grid>
+</Window>

+ 57 - 0
Firewatch 2.0/FireWindow.xaml.cs

@@ -0,0 +1,57 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для FireWindow.xaml
+    /// </summary>
+    public partial class FireWindow : Window
+    {
+        public FireWindow()
+        {
+            InitializeComponent();
+            Load();
+            DataContext = new Fire();
+        }
+
+        public FireWindow(Fire fire)
+        {
+            InitializeComponent();
+            Load();
+            DataContext = fire;
+        }
+
+        private void Load()
+        {
+            CmbForest.ItemsSource = Helper.context.Forests.ToList();
+            CmbFirehouse.ItemsSource = Helper.context.Firehouses.ToList();
+        }
+
+        private void Fire_OK(object sender, RoutedEventArgs e)
+        {
+            if (DataContext is Fire fire && fire.Fire_ID == 0)
+            {
+                Helper.context.Fires.Add(fire);
+            }
+            Helper.context.SaveChanges();
+            Close();
+        }
+
+        private void Fire_Close(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 32 - 0
Firewatch 2.0/Firehouse.cs

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

+ 15 - 0
Firewatch 2.0/FirehouseWindow.xaml

@@ -0,0 +1,15 @@
+<Window x:Class="Firewatch_2._0.FirehouseWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="FirehouseWindow" Height="139" Width="317">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="15,19,0,0" TextWrapping="Wrap" Text="Название:" VerticalAlignment="Top" Width="74"/>
+        <TextBox Text="{Binding FirehouseTitle}" x:Name="txtTitleFirehouse" HorizontalAlignment="Left" Height="19" Margin="94,19,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="27,58,0,0" VerticalAlignment="Top" Width="110" Click="Firehouse_OK"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="166,58,0,0" VerticalAlignment="Top" Width="110" Click="Firehouse_Close"/>
+    </Grid>
+</Window>

+ 66 - 0
Firewatch 2.0/FirehouseWindow.xaml.cs

@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.Data.Entity.Validation;
+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 Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для FirehouseWindow.xaml
+    /// </summary>
+    public partial class FirehouseWindow : Window
+    {
+        dbData db = new dbData();
+        public FirehouseWindow()
+        {
+            InitializeComponent();
+            DataContext = new Firehouse();
+        }
+
+        public FirehouseWindow(Firehouse firehouse)
+        {
+            InitializeComponent();
+            DataContext = firehouse;
+        }
+
+        private void Firehouse_OK(object sender, RoutedEventArgs e)
+        {
+            if (DataContext is Firehouse firehouse && firehouse.Firehouse_ID == 0)
+            {
+                Helper.context.Firehouses.Add(firehouse);
+            }
+            try
+            {
+                Helper.context.SaveChanges();
+            }
+            catch (DbEntityValidationException ex)
+            {
+                foreach (DbEntityValidationResult validationError in ex.EntityValidationErrors)
+                {
+                    MessageBox.Show("Object: " + validationError.Entry.Entity.ToString());
+
+                    foreach (DbValidationError err in validationError.ValidationErrors)
+                    {
+                        MessageBox.Show(err.ErrorMessage + "");
+                    }
+                }
+            }
+            Close();
+        }
+
+        private void Firehouse_Close(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 25 - 0
Firewatch 2.0/Fireman.cs

@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Firewatch_2._0
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Fireman
+    {
+        public int Fireman_ID { get; set; }
+        public string LastName { get; set; }
+        public string FirstName { get; set; }
+        public string MiddleName { get; set; }
+        public Nullable<int> FKTeamID { get; set; }
+    
+        public virtual Team Team { get; set; }
+    }
+}

+ 21 - 0
Firewatch 2.0/FiremanWindow.xaml

@@ -0,0 +1,21 @@
+<Window x:Class="Firewatch_2._0.FiremanWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Окно сотрудника" Height="221" Width="331">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="26,79,0,0" TextWrapping="Wrap" Text="Отчество:" VerticalAlignment="Top" Width="74"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="26,49,0,0" TextWrapping="Wrap" Text="Имя:" VerticalAlignment="Top" Width="74"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="26,17,0,0" TextWrapping="Wrap" Text="Фамилия:" VerticalAlignment="Top" Width="74"/>
+        <TextBox Text="{Binding LastName}" x:Name="txtLastName" HorizontalAlignment="Left" Height="19" Margin="106,17,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding FirstName}" x:Name="txtFirstName" HorizontalAlignment="Left" Height="19" Margin="106,49,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding MiddleName}" x:Name="txtMiddleName" HorizontalAlignment="Left" Height="19" Margin="106,79,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="33,143,0,0" VerticalAlignment="Top" Width="125" Click="Fireman_OK"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="172,143,0,0" VerticalAlignment="Top" Width="125" Click="Fireman_Close"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="26,109,0,0" TextWrapping="Wrap" Text="Команда:" VerticalAlignment="Top" Width="74"/>
+        <ComboBox Name="CmbTeam" DisplayMemberPath="TeamTitle" SelectedIndex="0" SelectedItem="{Binding Team}" Text="{Binding Team.TeamTitle}"  HorizontalAlignment="Left" Height="21" Margin="106,109,0,0" VerticalAlignment="Top" Width="198"/>
+    </Grid>
+</Window>

+ 56 - 0
Firewatch 2.0/FiremanWindow.xaml.cs

@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для FiremanWindow.xaml
+    /// </summary>
+    public partial class FiremanWindow : Window
+    {
+        public FiremanWindow()
+        {
+            InitializeComponent();
+            Load();
+            DataContext = new Fireman();
+        }
+
+        public FiremanWindow(Fireman fireman)
+        {
+            InitializeComponent();
+            Load();
+            DataContext = fireman;
+        }
+
+        private void Load()
+        {
+            CmbTeam.ItemsSource = Helper.context.Teams.ToList();
+        }
+
+        private void Fireman_OK(object sender, RoutedEventArgs e)
+        {
+            if (DataContext is Fireman fireman && fireman.Fireman_ID == 0)
+            {
+                Helper.context.Firemans.Add(fireman);
+            }
+            Helper.context.SaveChanges();
+            Close();
+        }
+
+        private void Fireman_Close(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 221 - 0
Firewatch 2.0/Firewatch 2.0.csproj

@@ -0,0 +1,221 @@
+<?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>{1094FFA9-4D84-4D74-826D-3F8E20D93615}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>Firewatch_2._0</RootNamespace>
+    <AssemblyName>Firewatch 2.0</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="App.xaml.cs">
+      <DependentUpon>App.xaml</DependentUpon>
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="AuthorizationWindow.xaml.cs">
+      <DependentUpon>AuthorizationWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="dbDE.Context.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>dbDE.Context.tt</DependentUpon>
+    </Compile>
+    <Compile Include="dbDE.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="dbDE.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>dbDE.edmx</DependentUpon>
+    </Compile>
+    <Compile Include="Fire.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Firehouse.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="FirehouseWindow.xaml.cs">
+      <DependentUpon>FirehouseWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Fireman.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="FiremanWindow.xaml.cs">
+      <DependentUpon>FiremanWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="FirewatchWindow.xaml.cs">
+      <DependentUpon>FirewatchWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="FireWindow.xaml.cs">
+      <DependentUpon>FireWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Forest.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="ForestWindow.xaml.cs">
+      <DependentUpon>ForestWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="NewPassWindow.xaml.cs">
+      <DependentUpon>NewPassWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="RegistrationWindow.xaml.cs">
+      <DependentUpon>RegistrationWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="StaffIS.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Team.cs">
+      <DependentUpon>dbDE.tt</DependentUpon>
+    </Compile>
+    <Compile Include="TeamWindow.xaml.cs">
+      <DependentUpon>TeamWindow.xaml</DependentUpon>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Helper.cs" />
+    <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="dbDE.edmx">
+      <Generator>EntityModelCodeGenerator</Generator>
+      <LastGenOutput>dbDE.Designer.cs</LastGenOutput>
+    </EntityDeploy>
+    <None Include="dbDE.edmx.diagram">
+      <DependentUpon>dbDE.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>
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </ItemGroup>
+  <ItemGroup>
+    <Page Include="AuthorizationWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="FirehouseWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="FiremanWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="FirewatchWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="FireWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="ForestWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="NewPassWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="RegistrationWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="TeamWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="dbDE.Context.tt">
+      <Generator>TextTemplatingFileGenerator</Generator>
+      <DependentUpon>dbDE.edmx</DependentUpon>
+      <LastGenOutput>dbDE.Context.cs</LastGenOutput>
+    </Content>
+    <Content Include="dbDE.tt">
+      <Generator>TextTemplatingFileGenerator</Generator>
+      <DependentUpon>dbDE.edmx</DependentUpon>
+      <LastGenOutput>dbDE.cs</LastGenOutput>
+    </Content>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 100 - 0
Firewatch 2.0/FirewatchWindow.xaml

@@ -0,0 +1,100 @@
+<Window x:Class="Firewatch_2._0.FirewatchWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Firewatch" Height="450" Width="835">
+    <Grid>
+        <TabControl HorizontalAlignment="Center" Width="835">
+            <TabItem Header="Пожары" Margin="0.2,-2,-57.8,1">
+                <Grid Background="#FFE5E5E5" Margin="0,0,-1,0">
+                    <DataGrid Name="tableFire" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Binding="{Binding Area}" Header="Площадь, га" Width="1.8*"/>
+                            <DataGridTextColumn Binding="{Binding StartDate}" Header="Дата начала" Width="2.5*"/>
+                            <DataGridTextColumn Binding="{Binding EndDate}" Header="Дата окончания" Width="2.5*"/>
+                            <DataGridTextColumn Binding="{Binding FirePower}" Header="Сила пожара" Width="1.5*"/>
+                            <DataGridTextColumn Binding="{Binding Forest.ForestTitle}" Header="Лес" Width="2.3*"/>
+                            <DataGridTextColumn Binding="{Binding Firehouse.FirehouseTitle}" Header="Пожарная часть" Width="2.3*"/>
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Button Content="Добавить" HorizontalAlignment="Left" Height="25" Margin="23,349,0,0" VerticalAlignment="Top" Width="110" Click="InsertFire_Click"/>
+                    <Button Content="Изменить" HorizontalAlignment="Left" Height="25" Margin="150,349,0,0" VerticalAlignment="Top" Width="110" Click="UpdateFire_Click"/>
+                    <Button Content="Удалить" HorizontalAlignment="Left" Height="25" Margin="280,349,0,0" VerticalAlignment="Top" Width="110" Click="DeleteFire_Click"/>
+                </Grid>
+            </TabItem>
+
+            <TabItem Header="Леса" Margin="57.8,-2,-115,1">
+                <Grid Background="#FFE5E5E5" Margin="0,0,0.4,-0.4">
+                    <DataGrid Name="tableForest" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Binding="{Binding ForestTitle}" Header="Название леса" Width="3*" />
+                            <DataGridTextColumn Binding="{Binding Area}" Header="Площадь, га" Width="2.3*"/>
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Button Content="Добавить" HorizontalAlignment="Left" Height="25" Margin="23,349,0,0" VerticalAlignment="Top" Width="110" Click="InsertForest_Click"/>
+                    <Button Content="Изменить" HorizontalAlignment="Left" Height="25" Margin="150,349,0,0" VerticalAlignment="Top" Width="110" Click="UpdateForest_Click"/>
+                    <Button Content="Удалить" HorizontalAlignment="Left" Height="25" Margin="280,349,0,0" VerticalAlignment="Top" Width="110" Click="DeleteForest_Click"/>
+                </Grid>
+            </TabItem>
+
+            <TabItem Header="Пожарные" Margin="115,-2,-165,1">
+                <Grid Background="#FFE5E5E5" Height="406">
+                    <DataGrid Name="tableFireman" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Binding="{Binding LastName}" Header="Фамилия" Width="3*" />
+                            <DataGridTextColumn Binding="{Binding FirstName}" Header="Имя" Width="2.3*"/>
+                            <DataGridTextColumn Binding="{Binding MiddleName}" Header="Отчество" Width="5*" />
+                            <DataGridTextColumn Binding="{Binding Team.TeamTitle}" Header="Команда" Width="5*" />
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Button Content="Добавить" HorizontalAlignment="Left" Height="25" Margin="23,349,0,0" VerticalAlignment="Top" Width="110" Click="InsertFireman_Click"/>
+                    <Button Content="Изменить" HorizontalAlignment="Left" Height="25" Margin="150,349,0,0" VerticalAlignment="Top" Width="110" Click="UpdateFireman_Click"/>        
+                    <Button Content="Удалить" HorizontalAlignment="Left" Height="25" Margin="280,349,0,0" VerticalAlignment="Top" Width="110" Click="DeleteFireman_Click"/>
+                </Grid>
+            </TabItem>
+
+            <TabItem Header="Команды" Margin="165,-2,-230,1">
+                <Grid Background="#FFE5E5E5" Margin="0,0,0.4,-0.4">
+                    <DataGrid Name="tableTeam" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Binding="{Binding TeamTitle}" Header="Название команды" Width="5*" />
+                            <DataGridTextColumn Binding="{Binding Firehouse.FirehouseTitle}" Header="Пожарная часть" Width="5*" />
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Button Content="Добавить" HorizontalAlignment="Left" Height="25" Margin="23,349,0,0" VerticalAlignment="Top" Width="110" Click="InsertTeam_Click"/>
+                    <Button Content="Изменить" HorizontalAlignment="Left" Height="25" Margin="150,349,0,0" VerticalAlignment="Top" Width="110" Click="UpdateTeam_Click"/>
+                    <Button Content="Удалить" HorizontalAlignment="Left" Height="25" Margin="280,349,0,0" VerticalAlignment="Top" Width="110" Click="DeleteTeam_Click"/>
+                </Grid>
+            </TabItem>
+
+            <TabItem Header="Пожарные части" Margin="230,-2,-250.4,1">
+                <Grid Background="#FFE5E5E5" Margin="0,0,0.4,-0.4">
+                    <DataGrid Name="tableFirehouse" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn  Binding="{Binding FirehouseTitle}" Header="Название пожарной части" Width="5*"/>
+                        </DataGrid.Columns>
+                    </DataGrid>
+                    <Button Content="Добавить" HorizontalAlignment="Left" Height="25" Margin="23,349,0,0" VerticalAlignment="Top" Width="110" Click="InsertFirehouse_Click"/>
+                    <Button Content="Изменить" HorizontalAlignment="Left" Height="25" Margin="150,349,0,0" VerticalAlignment="Top" Width="110" Click="UpdateFirehouse_Click"/>
+                    <Button Content="Удалить" HorizontalAlignment="Left" Height="25" Margin="280,349,0,0" VerticalAlignment="Top" Width="110" Click="DeleteFirehouse_Click"/>
+                </Grid>
+            </TabItem>
+
+            <TabItem Header="Сотрудники ИС" Margin="370,-2,-371,1">
+                <Grid Background="#FFE5E5E5" Height="406">
+                    <DataGrid x:Name="tableStaffIS" AutoGenerateColumns="False" Height="307" Margin="23,27,26,0" VerticalAlignment="Top">
+                        <DataGrid.Columns>
+                            <DataGridTextColumn Binding="{Binding LastName}" Header="Фамилия" Width="3*" />
+                            <DataGridTextColumn Binding="{Binding FirstName}" Header="Имя" Width="2.3*"/>
+                            <DataGridTextColumn Binding="{Binding MiddleName}" Header="Отчество" Width="5*" />
+                            <DataGridTextColumn Binding="{Binding Login}" Header="Логин" Width="4*"/>
+                        </DataGrid.Columns>
+                    </DataGrid>
+                </Grid>
+            </TabItem>
+        </TabControl>
+    </Grid>
+</Window>

+ 168 - 0
Firewatch 2.0/FirewatchWindow.xaml.cs

@@ -0,0 +1,168 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для FirewatchWindow.xaml
+    /// </summary>
+    public partial class FirewatchWindow : Window
+    {
+        public FirewatchWindow()
+        {
+            InitializeComponent();
+            Load();
+        }
+
+        private void Load()
+        {
+            tableFire.ItemsSource = Helper.context.Fires.ToList();
+            tableForest.ItemsSource = Helper.context.Forests.ToList();
+            tableFireman.ItemsSource = Helper.context.Firemans.ToList();
+            tableTeam.ItemsSource = Helper.context.Teams.ToList();
+            tableFirehouse.ItemsSource = Helper.context.Firehouses.ToList();
+            tableStaffIS.ItemsSource = Helper.context.StaffISs.ToList();
+        }
+
+        // Пожары.
+        private void InsertFire_Click(object sender, RoutedEventArgs e)
+        {
+            new FireWindow().ShowDialog();
+            Load();
+        }
+
+        private void UpdateFire_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFire.SelectedItem is Fire fire)
+            {
+                new FireWindow(fire).ShowDialog();
+                Load();
+            }
+        }
+
+        private void DeleteFire_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFire.SelectedItem is Fire fire)
+            {
+                Helper.context.Fires.Remove(fire);
+                Helper.context.SaveChanges();
+                Load();
+            }
+        }
+
+        // Леса.
+        private void InsertForest_Click(object sender, RoutedEventArgs e)
+        {
+            new ForestWindow().ShowDialog();
+            Load();
+        }
+
+        private void UpdateForest_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableForest.SelectedItem is Forest forest)
+            {
+                new ForestWindow(forest).ShowDialog();
+                Load();
+            }
+        }
+
+        private void DeleteForest_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableForest.SelectedItem is Forest forest)
+            {
+                Helper.context.Forests.Remove(forest);
+                Helper.context.SaveChanges();
+                Load();
+            }
+        }
+
+        // Пожарные.
+        private void InsertFireman_Click(object sender, RoutedEventArgs e)
+        {
+            new FiremanWindow().ShowDialog();
+            Load();
+        }
+
+        private void UpdateFireman_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFireman.SelectedItem is Fireman fireman)
+            {
+                new FiremanWindow(fireman).ShowDialog();
+                Load();
+            }
+        }
+
+        private void DeleteFireman_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFireman.SelectedItem is Fireman fireman)
+            {
+                Helper.context.Firemans.Remove(fireman);
+                Helper.context.SaveChanges();
+                Load();
+            }
+        }
+
+        // Команды.
+        private void InsertTeam_Click(object sender, RoutedEventArgs e)
+        {
+            new TeamWindow().ShowDialog();
+            Load();
+        }
+
+        private void UpdateTeam_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableTeam.SelectedItem is Team team)
+            {
+                new TeamWindow(team).ShowDialog();
+                Load();
+            }
+        }
+
+        private void DeleteTeam_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableTeam.SelectedItem is Team team)
+            {
+                Helper.context.Teams.Remove(team);
+                Helper.context.SaveChanges();
+                Load();
+            }
+        }
+
+        // Пожарные части.
+        private void InsertFirehouse_Click(object sender, RoutedEventArgs e)
+        {
+            new FirehouseWindow().ShowDialog();
+            Load();
+        }
+
+        private void UpdateFirehouse_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFirehouse.SelectedItem is Firehouse firehouse)
+            {
+                new FirehouseWindow(firehouse).ShowDialog();
+                Load();
+            }
+        }
+
+        private void DeleteFirehouse_Click(object sender, RoutedEventArgs e)
+        {
+            if (tableFirehouse.SelectedItem is Firehouse firehouse)
+            {
+                Helper.context.Firehouses.Remove(firehouse);
+                Helper.context.SaveChanges();
+                Load();
+            }
+        }
+    }
+}

+ 30 - 0
Firewatch 2.0/Forest.cs

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

+ 17 - 0
Firewatch 2.0/ForestWindow.xaml

@@ -0,0 +1,17 @@
+<Window x:Class="Firewatch_2._0.ForestWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Окно пожара" Height="220" Width="350">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="30,89,0,0" TextWrapping="Wrap" Text="Площадь:" VerticalAlignment="Top" Width="74"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="30,57,0,0" TextWrapping="Wrap" Text="Название:" VerticalAlignment="Top" Width="74"/>
+        <TextBox Text="{Binding ForestTitle}" x:Name="txtTitleForest" HorizontalAlignment="Left" Height="19" Margin="109,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <TextBox Text="{Binding Area}" x:Name="txtAreaForest" HorizontalAlignment="Left" Height="19" Margin="109,89,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="198"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="30,136,0,0" VerticalAlignment="Top" Width="125" Click="Forest_OK"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="182,136,0,0" VerticalAlignment="Top" Width="125" Click="Forest_Close"/>
+    </Grid>
+</Window>

+ 49 - 0
Firewatch 2.0/ForestWindow.xaml.cs

@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для ForestWindow.xaml
+    /// </summary>
+    public partial class ForestWindow : Window
+    {
+        public ForestWindow()
+        {
+            InitializeComponent();
+            DataContext = new Forest();
+        }
+
+        public ForestWindow(Forest forest)
+        {
+            InitializeComponent();
+            DataContext = forest;
+        }
+
+        private void Forest_OK(object sender, RoutedEventArgs e)
+        {
+            if (DataContext is Forest forest && forest.Forest_ID== 0)
+            {
+                Helper.context.Forests.Add(forest);
+            }
+            Helper.context.SaveChanges();
+            Close();
+        }
+
+        private void Forest_Close(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 13 - 0
Firewatch 2.0/Helper.cs

@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Firewatch_2._0
+{
+    internal class Helper
+    {
+        public static dbData context = new dbData();
+    }
+}

+ 17 - 0
Firewatch 2.0/NewPassWindow.xaml

@@ -0,0 +1,17 @@
+<Window x:Class="Firewatch_2._0.NewPassWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Окно смены пароля" Height="205" Width="350">
+    <Grid>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="25,42,0,0" TextWrapping="Wrap" Text="Введите свой логин:" VerticalAlignment="Top" Width="130"/>
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="25,87,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="130"><Run Text="Вве"/><Run Language="ru-ru" Text="д"/><Run Text="ите новый пароль:"/></TextBlock>
+        <TextBox Name="txtLogin" HorizontalAlignment="Left" Height="20" Margin="160,42,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="160"/>
+        <TextBox Name="txtNewPassword" HorizontalAlignment="Left" Height="19" Margin="160,83,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="160"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="45,126,0,0" VerticalAlignment="Top" Width="110" Click="NewPassword_Click"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="197,126,0,0" VerticalAlignment="Top" Width="110" Click="NewPasswordClose_Click"/>
+    </Grid>
+</Window>

+ 70 - 0
Firewatch 2.0/NewPassWindow.xaml.cs

@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для NewPassWindow.xaml
+    /// </summary>
+    public partial class NewPassWindow : Window
+    {
+        public NewPassWindow()
+        {
+            InitializeComponent();
+        }
+
+        public void NewPassword_Click(object sender, RoutedEventArgs e)
+        {
+            NewPass(txtLogin.Text.Trim(), txtNewPassword.Text.Trim());
+        }
+
+        public bool NewPass(string login, string password)
+        {
+            if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password))
+            {
+                MessageBox.Show("Введите логин и пароль");
+                return false;
+            }
+
+            using (dbData db = new dbData())
+            {
+                var user = db.StaffISs.Where(u => u.Login == login).FirstOrDefault();
+
+                if (user != null)
+                {
+                    if (txtLogin.Text == login)
+                    {
+                        var newPass = db.StaffISs.Where(u => u.Login == login).FirstOrDefault();
+                        newPass.Password = txtNewPassword.Text;
+                        db.SaveChanges();
+                        MessageBox.Show("Вы успешно сменили пароль");
+                    }
+                    else
+                    {
+                        MessageBox.Show("Такого пользователя не существует");
+                        return false;
+                    }
+                }
+                Close();
+
+                return true;
+            }
+        }
+
+        private void NewPasswordClose_Click(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 55 - 0
Firewatch 2.0/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("Firewatch 2.0")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Firewatch 2.0")]
+[assembly: AssemblyCopyright("Copyright ©  2022")]
+[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")]

+ 71 - 0
Firewatch 2.0/Properties/Resources.Designer.cs

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

+ 30 - 0
Firewatch 2.0/Properties/Settings.Designer.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <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 Firewatch_2._0.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
Firewatch 2.0/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>

+ 22 - 0
Firewatch 2.0/RegistrationWindow.xaml

@@ -0,0 +1,22 @@
+<Window x:Class="Firewatch_2._0.RegistrationWindow"
+        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:Firewatch_2._0"
+        Title="Регистрация" Height="318" Width="352">
+    <Grid Margin="0,0,3.6,0.4">
+        <TextBlock HorizontalAlignment="Left" Height="25" Margin="34,20,0,0" TextWrapping="Wrap" Text="Фамилия:" VerticalAlignment="Top" Width="85"/>
+        <TextBlock HorizontalAlignment="Left" Height="25" Margin="33,62,0,0" TextWrapping="Wrap" Text="Имя:" VerticalAlignment="Top" Width="85"/>
+        <TextBlock HorizontalAlignment="Left" Height="25" Margin="33,103,0,0" TextWrapping="Wrap" Text="Отчество:" VerticalAlignment="Top" Width="85"/>
+        <TextBox x:Name="txtlastName" HorizontalAlignment="Left" Height="25" Margin="123,20,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200"/>
+        <TextBox x:Name="txtfirstName" HorizontalAlignment="Left" Height="25" Margin="123,62,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200"/>
+        <TextBox x:Name="txtmiddleName" HorizontalAlignment="Left" Height="25" Margin="123,103,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200"/>
+        <TextBlock HorizontalAlignment="Left" Height="25" Margin="33,144,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="85"><Run Text="Логин"/><Run Text=":"/></TextBlock>
+        <TextBlock HorizontalAlignment="Left" Height="25" Margin="33,183,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="85"><Run Text="Пароль"/><Run Text=":"/></TextBlock>
+        <TextBox x:Name="txtlogin" HorizontalAlignment="Left" Height="25" Margin="123,144,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="200"/>
+        <PasswordBox x:Name="txtpassword" HorizontalAlignment="Left" Height="25" Margin="123,183,0,0" VerticalAlignment="Top" Width="200"/>
+        <Button Content="Зарегестрироваться" HorizontalAlignment="Left" Height="32" Margin="33,233,0,0" VerticalAlignment="Top" Width="162" Click="Registration_Click"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="32" Margin="227,233,0,0" VerticalAlignment="Top" Width="96" Click="Cancel_Click"/>
+    </Grid>
+</Window>

+ 69 - 0
Firewatch 2.0/RegistrationWindow.xaml.cs

@@ -0,0 +1,69 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для RegistrationWindow.xaml
+    /// </summary>
+    public partial class RegistrationWindow : Window
+    {
+        public RegistrationWindow()
+        {
+            InitializeComponent();
+        }
+
+        public void Registration_Click(object sender, RoutedEventArgs e)
+        {
+            Reg(txtfirstName.Text, txtlastName.Text, txtmiddleName.Text, txtlogin.Text, txtpassword.Password);
+        }
+
+        public bool Reg(string login, string password, string lastName, string firstName, string middleName)
+        {
+            if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password) || string.IsNullOrEmpty(lastName)
+                || string.IsNullOrEmpty(firstName))
+            {
+                MessageBox.Show("Введите данные в поля");
+                return false;
+            }
+
+            using (dbData db = new dbData())
+            {
+                if (db.StaffISs.Select(item => item.Login).Contains(txtlogin.Text))
+                {
+                    MessageBox.Show("Такой логин уже существует");
+                    return false;
+                }
+
+                StaffIS staffIS = new StaffIS();
+                staffIS.LastName = txtlastName.Text;
+                staffIS.FirstName = txtfirstName.Text;
+                staffIS.MiddleName = txtmiddleName.Text;
+                staffIS.Login = txtlogin.Text;
+                staffIS.Password = txtpassword.Password;
+                db.StaffISs.Add(staffIS);
+                db.SaveChanges();
+                MessageBox.Show("Вы успешно зарегестировались");
+                Close();
+
+                return true;
+            }
+        }
+
+        private void Cancel_Click(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

+ 24 - 0
Firewatch 2.0/StaffIS.cs

@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Firewatch_2._0
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class StaffIS
+    {
+        public int StaffIS_ID { 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; }
+    }
+}

+ 31 - 0
Firewatch 2.0/Team.cs

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

+ 17 - 0
Firewatch 2.0/TeamWindow.xaml

@@ -0,0 +1,17 @@
+<Window x:Class="Firewatch_2._0.TeamWindow"
+        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:Firewatch_2._0"
+        mc:Ignorable="d"
+        Title="Окно команды" Height="182" Width="364">
+    <Grid Margin="0,0,0,-6">
+        <TextBlock HorizontalAlignment="Left" Height="19" Margin="17,26,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="94"><Run Language="ru-ru" Text="Название"/><Run Text=":"/></TextBlock>
+        <TextBox Text="{Binding TeamTitle}" x:Name="txtTitleTeam" HorizontalAlignment="Left" Height="19" Margin="116,26,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="204"/>
+        <ComboBox Name="CmbFirehouse" DisplayMemberPath="FirehouseTitle" SelectedIndex="0" SelectedItem="{Binding Firehouse}" Text="{Binding Firehouse.FirehouseTitle}" HorizontalAlignment="Left" Height="21" Margin="118,60,0,0" VerticalAlignment="Top" Width="202"/>
+        <Button Content="ОК" HorizontalAlignment="Left" Height="25" Margin="29,102,0,0" VerticalAlignment="Top" Width="125" Click="Team_OK"/>
+        <Button Content="Отмена" HorizontalAlignment="Left" Height="25" Margin="182,102,0,0" VerticalAlignment="Top" Width="125" Click="Team_Close"/>
+        <TextBlock HorizontalAlignment="Left" Height="21" Margin="17,59,0,0" TextWrapping="Wrap" Text="Пожарная часть:" VerticalAlignment="Top" Width="96"/>
+    </Grid>
+</Window>

+ 56 - 0
Firewatch 2.0/TeamWindow.xaml.cs

@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Firewatch_2._0
+{
+    /// <summary>
+    /// Логика взаимодействия для TeamWindow.xaml
+    /// </summary>
+    public partial class TeamWindow : Window
+    {
+        public TeamWindow()
+        {
+            InitializeComponent();
+            Load();
+            DataContext = new Team();
+        }
+
+        public TeamWindow(Team team)
+        {
+            InitializeComponent();
+            Load();
+            DataContext = team;
+        }
+
+        private void Load()
+        {
+            CmbFirehouse.ItemsSource = Helper.context.Firehouses.ToList();
+        }
+
+        private void Team_OK(object sender, RoutedEventArgs e)
+        {
+            if (DataContext is Team team && team.Team_ID == 0)
+            {
+                Helper.context.Teams.Add(team);
+            }
+            Helper.context.SaveChanges();
+            Close();
+        }
+
+        private void Team_Close(object sender, RoutedEventArgs e)
+        {
+            Close();
+        }
+    }
+}

二進制
Firewatch 2.0/bin/Debug/EntityFramework.SqlServer.dll


文件差異過大導致無法顯示
+ 2093 - 0
Firewatch 2.0/bin/Debug/EntityFramework.SqlServer.xml


二進制
Firewatch 2.0/bin/Debug/EntityFramework.dll


文件差異過大導致無法顯示
+ 53236 - 0
Firewatch 2.0/bin/Debug/EntityFramework.xml


二進制
Firewatch 2.0/bin/Debug/Firewatch 2.0.exe


+ 23 - 0
Firewatch 2.0/bin/Debug/Firewatch 2.0.exe.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <connectionStrings>
+    <add name="dbData" connectionString="metadata=res://*/dbDE.csdl|res://*/dbDE.ssdl|res://*/dbDE.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;initial catalog=gr601_kayual;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+  </connectionStrings>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+</configuration>

二進制
Firewatch 2.0/bin/Debug/Firewatch 2.0.pdb


二進制
Firewatch 2.0/bin/Debug/ru/EntityFramework.resources.dll


+ 35 - 0
Firewatch 2.0/dbDE.Context.cs

@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Firewatch_2._0
+{
+    using System;
+    using System.Data.Entity;
+    using System.Data.Entity.Infrastructure;
+    
+    public partial class dbData : DbContext
+    {
+        public dbData()
+            : base("name=dbData")
+        {
+        }
+    
+        protected override void OnModelCreating(DbModelBuilder modelBuilder)
+        {
+            throw new UnintentionalCodeFirstException();
+        }
+    
+        public virtual DbSet<Fire> Fires { get; set; }
+        public virtual DbSet<Firehouse> Firehouses { get; set; }
+        public virtual DbSet<Fireman> Firemans { get; set; }
+        public virtual DbSet<Forest> Forests { get; set; }
+        public virtual DbSet<StaffIS> StaffISs { get; set; }
+        public virtual DbSet<Team> Teams { get; set; }
+    }
+}

+ 636 - 0
Firewatch 2.0/dbDE.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 = @"dbDE.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
Firewatch 2.0/dbDE.Designer.cs

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

+ 9 - 0
Firewatch 2.0/dbDE.cs

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

+ 368 - 0
Firewatch 2.0/dbDE.edmx

@@ -0,0 +1,368 @@
+<?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="Хранилище gr601_kayualModel" 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="Fire">
+          <Key>
+            <PropertyRef Name="Fire_ID" />
+          </Key>
+          <Property Name="Fire_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Area" Type="int" Nullable="false" />
+          <Property Name="StartDate" Type="date" Nullable="false" />
+          <Property Name="EndDate" Type="date" />
+          <Property Name="FirePower" Type="int" Nullable="false" />
+          <Property Name="FKForestID" Type="int" />
+          <Property Name="FKFirehouseID" Type="int" />
+        </EntityType>
+        <EntityType Name="Firehouse">
+          <Key>
+            <PropertyRef Name="Firehouse_ID" />
+          </Key>
+          <Property Name="Firehouse_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="FirehouseTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Fireman">
+          <Key>
+            <PropertyRef Name="Fireman_ID" />
+          </Key>
+          <Property Name="Fireman_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
+          <Property Name="FKTeamID" Type="int" />
+        </EntityType>
+        <EntityType Name="Forest">
+          <Key>
+            <PropertyRef Name="Forest_ID" />
+          </Key>
+          <Property Name="Forest_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="ForestTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Area" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="StaffIS">
+          <Key>
+            <PropertyRef Name="StaffIS_ID" />
+          </Key>
+          <Property Name="StaffIS_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
+          <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Team">
+          <Key>
+            <PropertyRef Name="Team_ID" />
+          </Key>
+          <Property Name="Team_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="TeamTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="FKFirehouseID" Type="int" />
+        </EntityType>
+        <Association Name="FK_Firehouse_ID">
+          <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
+          <End Role="Team" Type="Self.Team" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Firehouse">
+              <PropertyRef Name="Firehouse_ID" />
+            </Principal>
+            <Dependent Role="Team">
+              <PropertyRef Name="FKFirehouseID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Firehousee_ID">
+          <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
+          <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Firehouse">
+              <PropertyRef Name="Firehouse_ID" />
+            </Principal>
+            <Dependent Role="Fire">
+              <PropertyRef Name="FKFirehouseID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Forest_ID">
+          <End Role="Forest" Type="Self.Forest" Multiplicity="0..1" />
+          <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Forest">
+              <PropertyRef Name="Forest_ID" />
+            </Principal>
+            <Dependent Role="Fire">
+              <PropertyRef Name="FKForestID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Team_ID">
+          <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
+          <End Role="Fireman" Type="Self.Fireman" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Team">
+              <PropertyRef Name="Team_ID" />
+            </Principal>
+            <Dependent Role="Fireman">
+              <PropertyRef Name="FKTeamID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="Хранилище gr601_kayualModelContainer">
+          <EntitySet Name="Fire" EntityType="Self.Fire" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Firehouse" EntityType="Self.Firehouse" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Fireman" EntityType="Self.Fireman" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Forest" EntityType="Self.Forest" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="StaffIS" EntityType="Self.StaffIS" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Team" EntityType="Self.Team" Schema="dbo" store:Type="Tables" />
+          <AssociationSet Name="FK_Firehouse_ID" Association="Self.FK_Firehouse_ID">
+            <End Role="Firehouse" EntitySet="Firehouse" />
+            <End Role="Team" EntitySet="Team" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Firehousee_ID" Association="Self.FK_Firehousee_ID">
+            <End Role="Firehouse" EntitySet="Firehouse" />
+            <End Role="Fire" EntitySet="Fire" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Forest_ID" Association="Self.FK_Forest_ID">
+            <End Role="Forest" EntitySet="Forest" />
+            <End Role="Fire" EntitySet="Fire" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Team_ID" Association="Self.FK_Team_ID">
+            <End Role="Team" EntitySet="Team" />
+            <End Role="Fireman" EntitySet="Fireman" />
+          </AssociationSet>
+        </EntityContainer>
+      </Schema>
+    </edmx:StorageModels>
+    <!-- CSDL content -->
+    <edmx:ConceptualModels>
+      <Schema Namespace="gr601_kayualModel" 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="Fire">
+          <Key>
+            <PropertyRef Name="Fire_ID" />
+          </Key>
+          <Property Name="Fire_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Area" Type="Int32" Nullable="false" />
+          <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="EndDate" Type="DateTime" Precision="0" />
+          <Property Name="FirePower" Type="Int32" Nullable="false" />
+          <Property Name="FKForestID" Type="Int32" />
+          <Property Name="FKFirehouseID" Type="Int32" />
+          <NavigationProperty Name="Firehouse" Relationship="Self.FK_Firehousee_ID" FromRole="Fire" ToRole="Firehouse" />
+          <NavigationProperty Name="Forest" Relationship="Self.FK_Forest_ID" FromRole="Fire" ToRole="Forest" />
+        </EntityType>
+        <EntityType Name="Firehouse">
+          <Key>
+            <PropertyRef Name="Firehouse_ID" />
+          </Key>
+          <Property Name="Firehouse_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="FirehouseTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <NavigationProperty Name="Fire" Relationship="Self.FK_Firehousee_ID" FromRole="Firehouse" ToRole="Fire" />
+          <NavigationProperty Name="Team" Relationship="Self.FK_Firehouse_ID" FromRole="Firehouse" ToRole="Team" />
+        </EntityType>
+        <EntityType Name="Fireman">
+          <Key>
+            <PropertyRef Name="Fireman_ID" />
+          </Key>
+          <Property Name="Fireman_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="FKTeamID" Type="Int32" />
+          <NavigationProperty Name="Team" Relationship="Self.FK_Team_ID" FromRole="Fireman" ToRole="Team" />
+        </EntityType>
+        <EntityType Name="Forest">
+          <Key>
+            <PropertyRef Name="Forest_ID" />
+          </Key>
+          <Property Name="Forest_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="ForestTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Area" Type="Int32" Nullable="false" />
+          <NavigationProperty Name="Fire" Relationship="Self.FK_Forest_ID" FromRole="Forest" ToRole="Fire" />
+        </EntityType>
+        <EntityType Name="StaffIS">
+          <Key>
+            <PropertyRef Name="StaffIS_ID" />
+          </Key>
+          <Property Name="StaffIS_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Team">
+          <Key>
+            <PropertyRef Name="Team_ID" />
+          </Key>
+          <Property Name="Team_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="TeamTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="FKFirehouseID" Type="Int32" />
+          <NavigationProperty Name="Firehouse" Relationship="Self.FK_Firehouse_ID" FromRole="Team" ToRole="Firehouse" />
+          <NavigationProperty Name="Fireman" Relationship="Self.FK_Team_ID" FromRole="Team" ToRole="Fireman" />
+        </EntityType>
+        <Association Name="FK_Firehousee_ID">
+          <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
+          <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Firehouse">
+              <PropertyRef Name="Firehouse_ID" />
+            </Principal>
+            <Dependent Role="Fire">
+              <PropertyRef Name="FKFirehouseID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Forest_ID">
+          <End Role="Forest" Type="Self.Forest" Multiplicity="0..1" />
+          <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Forest">
+              <PropertyRef Name="Forest_ID" />
+            </Principal>
+            <Dependent Role="Fire">
+              <PropertyRef Name="FKForestID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Firehouse_ID">
+          <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
+          <End Role="Team" Type="Self.Team" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Firehouse">
+              <PropertyRef Name="Firehouse_ID" />
+            </Principal>
+            <Dependent Role="Team">
+              <PropertyRef Name="FKFirehouseID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Team_ID">
+          <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
+          <End Role="Fireman" Type="Self.Fireman" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Team">
+              <PropertyRef Name="Team_ID" />
+            </Principal>
+            <Dependent Role="Fireman">
+              <PropertyRef Name="FKTeamID" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="dbData" annotation:LazyLoadingEnabled="true">
+          <EntitySet Name="Fires" EntityType="Self.Fire" />
+          <EntitySet Name="Firehouses" EntityType="Self.Firehouse" />
+          <EntitySet Name="Firemans" EntityType="Self.Fireman" />
+          <EntitySet Name="Forests" EntityType="Self.Forest" />
+          <EntitySet Name="StaffISs" EntityType="Self.StaffIS" />
+          <EntitySet Name="Teams" EntityType="Self.Team" />
+          <AssociationSet Name="FK_Firehousee_ID" Association="Self.FK_Firehousee_ID">
+            <End Role="Firehouse" EntitySet="Firehouses" />
+            <End Role="Fire" EntitySet="Fires" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Forest_ID" Association="Self.FK_Forest_ID">
+            <End Role="Forest" EntitySet="Forests" />
+            <End Role="Fire" EntitySet="Fires" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Firehouse_ID" Association="Self.FK_Firehouse_ID">
+            <End Role="Firehouse" EntitySet="Firehouses" />
+            <End Role="Team" EntitySet="Teams" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Team_ID" Association="Self.FK_Team_ID">
+            <End Role="Team" EntitySet="Teams" />
+            <End Role="Fireman" EntitySet="Firemans" />
+          </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="Хранилище gr601_kayualModelContainer" CdmEntityContainer="dbData">
+          <EntitySetMapping Name="Fires">
+            <EntityTypeMapping TypeName="gr601_kayualModel.Fire">
+              <MappingFragment StoreEntitySet="Fire">
+                <ScalarProperty Name="Fire_ID" ColumnName="Fire_ID" />
+                <ScalarProperty Name="Area" ColumnName="Area" />
+                <ScalarProperty Name="StartDate" ColumnName="StartDate" />
+                <ScalarProperty Name="EndDate" ColumnName="EndDate" />
+                <ScalarProperty Name="FirePower" ColumnName="FirePower" />
+                <ScalarProperty Name="FKForestID" ColumnName="FKForestID" />
+                <ScalarProperty Name="FKFirehouseID" ColumnName="FKFirehouseID" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Firehouses">
+            <EntityTypeMapping TypeName="gr601_kayualModel.Firehouse">
+              <MappingFragment StoreEntitySet="Firehouse">
+                <ScalarProperty Name="Firehouse_ID" ColumnName="Firehouse_ID" />
+                <ScalarProperty Name="FirehouseTitle" ColumnName="FirehouseTitle" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Firemans">
+            <EntityTypeMapping TypeName="gr601_kayualModel.Fireman">
+              <MappingFragment StoreEntitySet="Fireman">
+                <ScalarProperty Name="Fireman_ID" ColumnName="Fireman_ID" />
+                <ScalarProperty Name="LastName" ColumnName="LastName" />
+                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+                <ScalarProperty Name="FKTeamID" ColumnName="FKTeamID" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Forests">
+            <EntityTypeMapping TypeName="gr601_kayualModel.Forest">
+              <MappingFragment StoreEntitySet="Forest">
+                <ScalarProperty Name="Forest_ID" ColumnName="Forest_ID" />
+                <ScalarProperty Name="ForestTitle" ColumnName="ForestTitle" />
+                <ScalarProperty Name="Area" ColumnName="Area" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="StaffISs">
+            <EntityTypeMapping TypeName="gr601_kayualModel.StaffIS">
+              <MappingFragment StoreEntitySet="StaffIS">
+                <ScalarProperty Name="StaffIS_ID" ColumnName="StaffIS_ID" />
+                <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" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Teams">
+            <EntityTypeMapping TypeName="gr601_kayualModel.Team">
+              <MappingFragment StoreEntitySet="Team">
+                <ScalarProperty Name="Team_ID" ColumnName="Team_ID" />
+                <ScalarProperty Name="TeamTitle" ColumnName="TeamTitle" />
+                <ScalarProperty Name="FKFirehouseID" ColumnName="FKFirehouseID" />
+              </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>

+ 21 - 0
Firewatch 2.0/dbDE.edmx.diagram

@@ -0,0 +1,21 @@
+<?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="77352b9aff0f4042bcdd89755625532d" Name="Diagram1">
+        <EntityTypeShape EntityType="gr601_kayualModel.Fire" Width="1.5" PointX="3" PointY="3.25" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr601_kayualModel.Firehouse" Width="1.5" PointX="0.75" PointY="3.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr601_kayualModel.Fireman" Width="1.5" PointX="5.25" PointY="7" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr601_kayualModel.Forest" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr601_kayualModel.StaffIS" Width="1.5" PointX="5.75" PointY="1.5" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr601_kayualModel.Team" Width="1.5" PointX="3" PointY="7.125" IsExpanded="true" />
+        <AssociationConnector Association="gr601_kayualModel.FK_Firehousee_ID" ManuallyRouted="false" />
+        <AssociationConnector Association="gr601_kayualModel.FK_Forest_ID" ManuallyRouted="false" />
+        <AssociationConnector Association="gr601_kayualModel.FK_Firehouse_ID" ManuallyRouted="false" />
+        <AssociationConnector Association="gr601_kayualModel.FK_Team_ID" ManuallyRouted="false" />
+      </Diagram>
+    </edmx:Diagrams>
+  </edmx:Designer>
+</edmx:Edmx>

+ 733 - 0
Firewatch 2.0/dbDE.tt

@@ -0,0 +1,733 @@
+<#@ template language="C#" debug="false" hostspecific="true"#>
+<#@ include file="EF6.Utility.CS.ttinclude"#><#@ 
+ output extension=".cs"#><#
+
+const string inputFile = @"dbDE.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);
+    }
+}
+#>

+ 4 - 0
Firewatch 2.0/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
Firewatch 2.0/obj/Debug/App.g.cs

@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DAC87878046D73B214216ACC7FB191E10062B2275679570D93ADDEE70EDAD279"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <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("AuthorizationWindow.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() {
+            Firewatch_2._0.App app = new Firewatch_2._0.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

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

@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "DAC87878046D73B214216ACC7FB191E10062B2275679570D93ADDEE70EDAD279"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <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("AuthorizationWindow.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() {
+            Firewatch_2._0.App app = new Firewatch_2._0.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/AuthorizationWindow.baml


+ 124 - 0
Firewatch 2.0/obj/Debug/AuthorizationWindow.g.cs

@@ -0,0 +1,124 @@
+#pragma checksum "..\..\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "ABB76A754D63BA2970854F2267F12A78A724F4B5622ABCC5AE6BFB3ED1E29D9B"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// AuthorizationWindow
+    /// </summary>
+    public partial class AuthorizationWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 10 "..\..\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtloginBox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 11 "..\..\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox txtpasswordBox;
+        
+        #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("/Firewatch 2.0;component/authorizationwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\AuthorizationWindow.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.txtloginBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtpasswordBox = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 12 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Authorization_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 13 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Registration_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 17 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPass);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 124 - 0
Firewatch 2.0/obj/Debug/AuthorizationWindow.g.i.cs

@@ -0,0 +1,124 @@
+#pragma checksum "..\..\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "ABB76A754D63BA2970854F2267F12A78A724F4B5622ABCC5AE6BFB3ED1E29D9B"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// AuthorizationWindow
+    /// </summary>
+    public partial class AuthorizationWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 10 "..\..\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtloginBox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 11 "..\..\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox txtpasswordBox;
+        
+        #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("/Firewatch 2.0;component/authorizationwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\AuthorizationWindow.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.txtloginBox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtpasswordBox = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 12 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Authorization_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 13 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Registration_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 17 "..\..\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPass);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/DesignTimeResolveAssemblyReferences.cache


二進制
Firewatch 2.0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


二進制
Firewatch 2.0/obj/Debug/FireWindow.baml


+ 160 - 0
Firewatch 2.0/obj/Debug/FireWindow.g.cs

@@ -0,0 +1,160 @@
+#pragma checksum "..\..\FireWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FA2D709523AA7948CB3553BE8A6F85AC38B631E4BDD6145B60769E595777FC0B"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FireWindow
+    /// </summary>
+    public partial class FireWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 15 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtAreaFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 16 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtStartDateFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 17 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtEndDateFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 18 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirePowerFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 19 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 20 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbFirehouse;
+        
+        #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("/Firewatch 2.0;component/firewindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FireWindow.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.txtAreaFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtStartDateFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.txtEndDateFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            this.txtFirePowerFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 5:
+            this.CmbForest = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 6:
+            this.CmbFirehouse = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 7:
+            
+            #line 21 "..\..\FireWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fire_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 22 "..\..\FireWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fire_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 160 - 0
Firewatch 2.0/obj/Debug/FireWindow.g.i.cs

@@ -0,0 +1,160 @@
+#pragma checksum "..\..\FireWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FA2D709523AA7948CB3553BE8A6F85AC38B631E4BDD6145B60769E595777FC0B"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FireWindow
+    /// </summary>
+    public partial class FireWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 15 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtAreaFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 16 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtStartDateFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 17 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtEndDateFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 18 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirePowerFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 19 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 20 "..\..\FireWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbFirehouse;
+        
+        #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("/Firewatch 2.0;component/firewindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FireWindow.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.txtAreaFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtStartDateFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.txtEndDateFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            this.txtFirePowerFire = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 5:
+            this.CmbForest = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 6:
+            this.CmbFirehouse = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 7:
+            
+            #line 21 "..\..\FireWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fire_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 22 "..\..\FireWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fire_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/FirehouseWindow.baml


+ 105 - 0
Firewatch 2.0/obj/Debug/FirehouseWindow.g.cs

@@ -0,0 +1,105 @@
+#pragma checksum "..\..\FirehouseWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D4963C8FE1E449FA70961F16D89A03CB9D1934D7CB0A2DF9F07FD0453FF59C3C"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FirehouseWindow
+    /// </summary>
+    public partial class FirehouseWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 11 "..\..\FirehouseWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtTitleFirehouse;
+        
+        #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("/Firewatch 2.0;component/firehousewindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FirehouseWindow.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.txtTitleFirehouse = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            
+            #line 12 "..\..\FirehouseWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Firehouse_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 13 "..\..\FirehouseWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Firehouse_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 105 - 0
Firewatch 2.0/obj/Debug/FirehouseWindow.g.i.cs

@@ -0,0 +1,105 @@
+#pragma checksum "..\..\FirehouseWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "D4963C8FE1E449FA70961F16D89A03CB9D1934D7CB0A2DF9F07FD0453FF59C3C"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FirehouseWindow
+    /// </summary>
+    public partial class FirehouseWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 11 "..\..\FirehouseWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtTitleFirehouse;
+        
+        #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("/Firewatch 2.0;component/firehousewindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FirehouseWindow.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.txtTitleFirehouse = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            
+            #line 12 "..\..\FirehouseWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Firehouse_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 13 "..\..\FirehouseWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Firehouse_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/FiremanWindow.baml


+ 138 - 0
Firewatch 2.0/obj/Debug/FiremanWindow.g.cs

@@ -0,0 +1,138 @@
+#pragma checksum "..\..\FiremanWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "636054B22232CA9229416708113B4CAC9A8B8FDCCBCA20916C79E31908E205E5"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FiremanWindow
+    /// </summary>
+    public partial class FiremanWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 13 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 15 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 19 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbTeam;
+        
+        #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("/Firewatch 2.0;component/firemanwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FiremanWindow.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.txtLastName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtFirstName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.txtMiddleName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            
+            #line 16 "..\..\FiremanWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fireman_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 17 "..\..\FiremanWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fireman_Close);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            this.CmbTeam = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 138 - 0
Firewatch 2.0/obj/Debug/FiremanWindow.g.i.cs

@@ -0,0 +1,138 @@
+#pragma checksum "..\..\FiremanWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "636054B22232CA9229416708113B4CAC9A8B8FDCCBCA20916C79E31908E205E5"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FiremanWindow
+    /// </summary>
+    public partial class FiremanWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 13 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLastName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtFirstName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 15 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtMiddleName;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 19 "..\..\FiremanWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox CmbTeam;
+        
+        #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("/Firewatch 2.0;component/firemanwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FiremanWindow.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.txtLastName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtFirstName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            this.txtMiddleName = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 4:
+            
+            #line 16 "..\..\FiremanWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fireman_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            
+            #line 17 "..\..\FiremanWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Fireman_Close);
+            
+            #line default
+            #line hidden
+            return;
+            case 6:
+            this.CmbTeam = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.AssemblyReference.cache


+ 0 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.CopyComplete


+ 1 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+cdcf14ac680c30a4dc5d6b7d035573c780ff1027

+ 39 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.FileListAbsolute.txt

@@ -0,0 +1,39 @@
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\Firewatch 2.0.exe.config
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\Firewatch 2.0.exe
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\Firewatch 2.0.pdb
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\EntityFramework.dll
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\EntityFramework.SqlServer.dll
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\EntityFramework.xml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\EntityFramework.SqlServer.xml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\bin\Debug\ru\EntityFramework.resources.dll
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.csproj.AssemblyReference.cache
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.csproj.SuggestedBindingRedirects.cache
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\AuthorizationWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FirewatchWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\NewPassWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\RegistrationWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\App.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0_Content.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0_MarkupCompile.cache
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0_MarkupCompile.lref
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\AuthorizationWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FirewatchWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\NewPassWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\RegistrationWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.g.resources
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch_2._0.Properties.Resources.resources
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.csproj.GenerateResource.cache
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.csproj.CoreCompileInputs.cache
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.csproj.CopyComplete
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.exe
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\Firewatch 2.0.pdb
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FirehouseWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FirehouseWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\TeamWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\TeamWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FiremanWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FiremanWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\ForestWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\ForestWindow.baml
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FireWindow.g.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\FireWindow.baml

二進制
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.GenerateResource.cache


+ 0 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0.csproj.SuggestedBindingRedirects.cache


二進制
Firewatch 2.0/obj/Debug/Firewatch 2.0.exe


二進制
Firewatch 2.0/obj/Debug/Firewatch 2.0.g.resources


二進制
Firewatch 2.0/obj/Debug/Firewatch 2.0.pdb


+ 14 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_Content.g.cs

@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("dbde.context.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("dbde.tt")]
+
+

+ 14 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_Content.g.i.cs

@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("dbde.context.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("dbde.tt")]
+
+

+ 20 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.cache

@@ -0,0 +1,20 @@
+Firewatch 2.0
+
+
+winexe
+C#
+.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\
+Firewatch_2._0
+none
+false
+DEBUG;TRACE
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\App.xaml
+91317530482
+2907068145
+23792557247
+181539902175
+AuthorizationWindow.xaml;FirehouseWindow.xaml;FiremanWindow.xaml;FirewatchWindow.xaml;FireWindow.xaml;ForestWindow.xaml;NewPassWindow.xaml;RegistrationWindow.xaml;TeamWindow.xaml;
+
+False
+

+ 20 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.i.cache

@@ -0,0 +1,20 @@
+Firewatch 2.0
+
+
+winexe
+C#
+.cs
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\obj\Debug\
+Firewatch_2._0
+none
+false
+DEBUG;TRACE
+Z:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\App.xaml
+91317530482
+2907068145
+24-1289531371
+181539902175
+AuthorizationWindow.xaml;FirehouseWindow.xaml;FiremanWindow.xaml;FirewatchWindow.xaml;FireWindow.xaml;ForestWindow.xaml;NewPassWindow.xaml;RegistrationWindow.xaml;TeamWindow.xaml;
+
+True
+

+ 5 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.i.lref

@@ -0,0 +1,5 @@
+
+
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\FireWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\ForestWindow.xaml;;
+

+ 12 - 0
Firewatch 2.0/obj/Debug/Firewatch 2.0_MarkupCompile.lref

@@ -0,0 +1,12 @@
+
+
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\AuthorizationWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\FirehouseWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\FiremanWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\FirewatchWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\FireWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\ForestWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\NewPassWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\RegistrationWindow.xaml;;
+FZ:\2 курс\Курсовая работа\Firewatch 2.0\Firewatch 2.0\TeamWindow.xaml;;
+

二進制
Firewatch 2.0/obj/Debug/FirewatchWindow.baml


+ 264 - 0
Firewatch 2.0/obj/Debug/FirewatchWindow.g.cs

@@ -0,0 +1,264 @@
+#pragma checksum "..\..\FirewatchWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B12DFA87482BA0B5BB2F7E2EBF19455C296265BFD9D2D47C96642513EBC03EEC"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FirewatchWindow
+    /// </summary>
+    public partial class FirewatchWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 13 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 31 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 45 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFireman;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 61 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableTeam;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 75 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFirehouse;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 88 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableStaffIS;
+        
+        #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("/Firewatch 2.0;component/firewatchwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FirewatchWindow.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.tableFire = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 2:
+            
+            #line 23 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 24 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 25 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            this.tableForest = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 6:
+            
+            #line 37 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 38 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 39 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            this.tableFireman = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 10:
+            
+            #line 53 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 11:
+            
+            #line 54 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 12:
+            
+            #line 55 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 13:
+            this.tableTeam = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 14:
+            
+            #line 67 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 15:
+            
+            #line 68 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 16:
+            
+            #line 69 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 17:
+            this.tableFirehouse = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 18:
+            
+            #line 80 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            
+            #line 81 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 20:
+            
+            #line 82 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 21:
+            this.tableStaffIS = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 264 - 0
Firewatch 2.0/obj/Debug/FirewatchWindow.g.i.cs

@@ -0,0 +1,264 @@
+#pragma checksum "..\..\FirewatchWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B12DFA87482BA0B5BB2F7E2EBF19455C296265BFD9D2D47C96642513EBC03EEC"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FirewatchWindow
+    /// </summary>
+    public partial class FirewatchWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 13 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFire;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 31 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 45 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFireman;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 61 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableTeam;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 75 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableFirehouse;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 88 "..\..\FirewatchWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid tableStaffIS;
+        
+        #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("/Firewatch 2.0;component/firewatchwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FirewatchWindow.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.tableFire = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 2:
+            
+            #line 23 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 24 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 25 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFire_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 5:
+            this.tableForest = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 6:
+            
+            #line 37 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 7:
+            
+            #line 38 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 8:
+            
+            #line 39 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteForest_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 9:
+            this.tableFireman = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 10:
+            
+            #line 53 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 11:
+            
+            #line 54 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 12:
+            
+            #line 55 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFireman_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 13:
+            this.tableTeam = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 14:
+            
+            #line 67 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 15:
+            
+            #line 68 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 16:
+            
+            #line 69 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteTeam_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 17:
+            this.tableFirehouse = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 18:
+            
+            #line 80 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InsertFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 19:
+            
+            #line 81 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 20:
+            
+            #line 82 "..\..\FirewatchWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteFirehouse_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 21:
+            this.tableStaffIS = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Firewatch 2.0/obj/Debug/FirewatchWindow1xaml.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\FirewatchWindow1xaml.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "79CDAD609D5E19327164CF19CB1018EE0EF3C45485BDAC9773B96854928B4E62"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// FirewatchWindow1xaml
+    /// </summary>
+    public partial class FirewatchWindow1xaml : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        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("/Firewatch 2.0;component/firewatchwindow1xaml.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\FirewatchWindow1xaml.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) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/Firewatch_2._0.Properties.Resources.resources


二進制
Firewatch 2.0/obj/Debug/ForestWindow.baml


+ 116 - 0
Firewatch 2.0/obj/Debug/ForestWindow.g.cs

@@ -0,0 +1,116 @@
+#pragma checksum "..\..\ForestWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "542F2FC796366EFA4F12E461BC0358B7F0251A7E3B7EDFAECC0F0C2BCA7B0D91"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// ForestWindow
+    /// </summary>
+    public partial class ForestWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\ForestWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtTitleForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\ForestWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtAreaForest;
+        
+        #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("/Firewatch 2.0;component/forestwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\ForestWindow.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.txtTitleForest = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtAreaForest = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\ForestWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Forest_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 15 "..\..\ForestWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Forest_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 116 - 0
Firewatch 2.0/obj/Debug/ForestWindow.g.i.cs

@@ -0,0 +1,116 @@
+#pragma checksum "..\..\ForestWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "542F2FC796366EFA4F12E461BC0358B7F0251A7E3B7EDFAECC0F0C2BCA7B0D91"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// ForestWindow
+    /// </summary>
+    public partial class ForestWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\ForestWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtTitleForest;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\ForestWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtAreaForest;
+        
+        #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("/Firewatch 2.0;component/forestwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\ForestWindow.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.txtTitleForest = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtAreaForest = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\ForestWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Forest_OK);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 15 "..\..\ForestWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Forest_Close);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Firewatch 2.0/obj/Debug/MainWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0657C485C5B1C87A61E50F6577C77B28237691668EA6BE835D3733CF3D3156C7"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        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("/Firewatch 2.0;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) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

二進制
Firewatch 2.0/obj/Debug/NewPassWindow.baml


+ 116 - 0
Firewatch 2.0/obj/Debug/NewPassWindow.g.cs

@@ -0,0 +1,116 @@
+#pragma checksum "..\..\NewPassWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A6163E17A896F3C86A17F02DDE5D5B790BDC1AAB8AC705AB8AA05235BEB16810"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// NewPassWindow
+    /// </summary>
+    public partial class NewPassWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\NewPassWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLogin;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\NewPassWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtNewPassword;
+        
+        #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("/Firewatch 2.0;component/newpasswindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\NewPassWindow.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.txtLogin = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtNewPassword = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\NewPassWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPassword_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 15 "..\..\NewPassWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPasswordClose_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 116 - 0
Firewatch 2.0/obj/Debug/NewPassWindow.g.i.cs

@@ -0,0 +1,116 @@
+#pragma checksum "..\..\NewPassWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A6163E17A896F3C86A17F02DDE5D5B790BDC1AAB8AC705AB8AA05235BEB16810"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// NewPassWindow
+    /// </summary>
+    public partial class NewPassWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\NewPassWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtLogin;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\NewPassWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox txtNewPassword;
+        
+        #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("/Firewatch 2.0;component/newpasswindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\NewPassWindow.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.txtLogin = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.txtNewPassword = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\NewPassWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPassword_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 4:
+            
+            #line 15 "..\..\NewPassWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.NewPasswordClose_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Firewatch 2.0/obj/Debug/NewPassWindow1xaml.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\NewPassWindow1xaml.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "6A9C20A7C270815A4D27550785807D4664C90947AEDE6807E6E5AE2AF769D389"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Firewatch_2._0;
+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;
+
+
+namespace Firewatch_2._0 {
+    
+    
+    /// <summary>
+    /// NewPassWindow1xaml
+    /// </summary>
+    public partial class NewPassWindow1xaml : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        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("/Firewatch 2.0;component/newpasswindow1xaml.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\NewPassWindow1xaml.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) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 0 - 0
Firewatch 2.0/obj/Debug/RegistrationWindow.baml


部分文件因文件數量過多而無法顯示