1 5 years ago
parent
commit
653e793bb2

File diff suppressed because it is too large
+ 1 - 2
InteractiveKiosk/AboutThePark.xaml


+ 14 - 5
InteractiveKiosk/InteractiveKiosk.csproj

@@ -103,6 +103,9 @@
     <Compile Include="Map.cs">
     <Compile Include="Map.cs">
       <DependentUpon>DataBase.tt</DependentUpon>
       <DependentUpon>DataBase.tt</DependentUpon>
     </Compile>
     </Compile>
+    <Compile Include="Map.xaml.cs">
+      <DependentUpon>Map.xaml</DependentUpon>
+    </Compile>
     <Compile Include="ObjectInPlace.cs">
     <Compile Include="ObjectInPlace.cs">
       <DependentUpon>DataBase.tt</DependentUpon>
       <DependentUpon>DataBase.tt</DependentUpon>
     </Compile>
     </Compile>
@@ -163,6 +166,10 @@
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
       <SubType>Code</SubType>
     </Compile>
     </Compile>
+    <Page Include="Map.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <EntityDeploy Include="DataBase.edmx">
     <EntityDeploy Include="DataBase.edmx">
@@ -178,11 +185,11 @@
     <None Include="App.config" />
     <None Include="App.config" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
-    <Resource Include="HistoryThePark\porfiry_krylov_1900-10-2.jpg" />
-    <Resource Include="AboutThePark\fofqug0yyom.jpg" />
-    <Resource Include="AboutThePark\vdy1jcjdndq.jpg" />
-    <Resource Include="AboutThePark\bi22qjdmnmo.jpg" />
-    <Resource Include="AboutThePark\aenlkziatka.jpg" />
+    <Resource Include="porfiry_krylov_1900-10-2.jpg" />
+    <Resource Include="fofqug0yyom.jpg" />
+    <Resource Include="vdy1jcjdndq.jpg" />
+    <Resource Include="bi22qjdmnmo.jpg" />
+    <Resource Include="aenlkziatka.jpg" />
     <Content Include="DataBase.Context.tt">
     <Content Include="DataBase.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <Generator>TextTemplatingFileGenerator</Generator>
       <LastGenOutput>DataBase.Context.cs</LastGenOutput>
       <LastGenOutput>DataBase.Context.cs</LastGenOutput>
@@ -199,6 +206,8 @@
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Folder Include="AboutThePark\" />
+    <Folder Include="HistoryThePark\" />
     <Folder Include="Properties\" />
     <Folder Include="Properties\" />
   </ItemGroup>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

+ 1 - 1
InteractiveKiosk/MainWindow.xaml

@@ -8,7 +8,7 @@
         Title="Главная страница" Height="950" Width="700" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="WindowLoaded">
         Title="Главная страница" Height="950" Width="700" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="WindowLoaded">
     <Grid>
     <Grid>
         <Button Content="ВОЙТИ" HorizontalAlignment="Left" Margin="625,10,0,0" VerticalAlignment="Top" Width="45" Height="19" Background="#00000000" FontFamily="Century Gothic" BorderBrush="#00000000" Click="Authorization"/>
         <Button Content="ВОЙТИ" HorizontalAlignment="Left" Margin="625,10,0,0" VerticalAlignment="Top" Width="45" Height="19" Background="#00000000" FontFamily="Century Gothic" BorderBrush="#00000000" Click="Authorization"/>
-        <Button Content="КАРТА ПАРКА" HorizontalAlignment="Left" Margin="46,633,0,0" VerticalAlignment="Top" Width="240" Height="225" Foreground="Black" FontSize="22" FontFamily="Showcard Gothic" FontWeight="Bold" Background="#00000000">
+        <Button Content="КАРТА ПАРКА" HorizontalAlignment="Left" Margin="46,633,0,0" VerticalAlignment="Top" Width="240" Height="225" Foreground="Black" FontSize="22" FontFamily="Showcard Gothic" FontWeight="Bold" Background="#00000000" Click="Map">
         </Button>
         </Button>
         <Button Content="ДОСТОПРИМЕЧАТЕЛЬНОСТИ" HorizontalAlignment="Left" Margin="291,633,0,0" VerticalAlignment="Top" Width="242" Height="110" FontSize="11" FontFamily="Century Gothic" Background="#00000000">
         <Button Content="ДОСТОПРИМЕЧАТЕЛЬНОСТИ" HorizontalAlignment="Left" Margin="291,633,0,0" VerticalAlignment="Top" Width="242" Height="110" FontSize="11" FontFamily="Century Gothic" Background="#00000000">
         </Button>
         </Button>

+ 15 - 0
InteractiveKiosk/MainWindow.xaml.cs

@@ -64,5 +64,20 @@ namespace InteractiveKiosk
             this.Opacity = 1;
             this.Opacity = 1;
             this.Effect = null;
             this.Effect = null;
         }
         }
+
+        private void Map(object sender, RoutedEventArgs e)
+        {
+            this.Opacity = 0.5;
+            this.Effect = new BlurEffect();
+            Map m = new Map()
+            {
+                Owner = this,
+                ShowInTaskbar = false,
+                Topmost = true
+            };
+            m.ShowDialog();
+            this.Opacity = 1;
+            this.Effect = null;
+        }
     }
     }
 }
 }

+ 39 - 0
InteractiveKiosk/Map.xaml

@@ -0,0 +1,39 @@
+<Window x:Class="InteractiveKiosk.Map"
+        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:InteractiveKiosk"
+        mc:Ignorable="d"
+        Title="Карта парка" Height="600" Width="685" WindowStartupLocation="CenterScreen">
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition/>
+            <RowDefinition Height="auto"/>
+        </Grid.RowDefinitions>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition/>
+            <ColumnDefinition Width="auto"/>
+        </Grid.ColumnDefinitions>
+        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.ColumnSpan="2" Margin="0,0,10,39" Grid.RowSpan="2">
+            <Grid x:Name="GridLoadedImage" HorizontalAlignment="Left" VerticalAlignment="Top">
+                <Grid.LayoutTransform>
+                    <ScaleTransform ScaleX="{Binding ElementName=slider1, Path=Value}" ScaleY="{Binding ElementName=slider1, Path=Value}"/>
+                </Grid.LayoutTransform>
+                <Image Name="loaded" Grid.Column="1" Source="карта_для_администрации.jpg" Stretch="Fill" />
+            </Grid>
+        </ScrollViewer>
+        <Slider Name="slider1"
+            Grid.Row="1"
+            Maximum="2"
+            Minimum=".60"
+            IsMoveToPointEnabled="True"
+            TickPlacement="BottomRight"
+            TickFrequency="2"
+            Ticks=".60,.75,1,1.15,1.30,1.45,1.60,1.75,2"
+            Width="115"
+            Margin="240,40,239,0"
+            HorizontalAlignment="Center"
+            SelectionStart="1" IsSnapToTickEnabled="True"/>
+    </Grid>
+</Window>

+ 38 - 0
InteractiveKiosk/Map.xaml.cs

@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace InteractiveKiosk
+{
+    /// <summary>
+    /// Логика взаимодействия для Map.xaml
+    /// </summary>
+    public partial class Map : Window
+    {
+        public Map()
+        {
+            InitializeComponent();
+        }
+        private void ZoomIn_Click(object sender, RoutedEventArgs e)
+        {
+            slider1.Value = slider1.Ticks.Select(x => (double?)x)
+                .FirstOrDefault(x => x > slider1.Value) ?? slider1.Value;
+        }
+
+        private void ZoomOut_Click(object sender, RoutedEventArgs e)
+        {
+            slider1.Value = slider1.Ticks.Select(x => (double?)x)
+                .LastOrDefault(x => x < slider1.Value) ?? slider1.Value;
+        }
+    }
+}

InteractiveKiosk/AboutThePark/aenlkziatka.jpg → InteractiveKiosk/aenlkziatka.jpg


InteractiveKiosk/AboutThePark/bi22qjdmnmo.jpg → InteractiveKiosk/bi22qjdmnmo.jpg


InteractiveKiosk/AboutThePark/fofqug0yyom.jpg → InteractiveKiosk/fofqug0yyom.jpg


InteractiveKiosk/HistoryThePark/porfiry_krylov_1900-10-2.jpg → InteractiveKiosk/porfiry_krylov_1900-10-2.jpg


InteractiveKiosk/AboutThePark/vdy1jcjdndq.jpg → InteractiveKiosk/vdy1jcjdndq.jpg