1 před 5 roky
rodič
revize
61d76e27fe

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 59 - 0
InteractiveKiosk/AboutThePark.xaml


+ 27 - 0
InteractiveKiosk/AboutThePark.xaml.cs

@@ -0,0 +1,27 @@
+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>
+    /// Логика взаимодействия для AboutThePark.xaml
+    /// </summary>
+    public partial class AboutThePark : Window
+    {
+        public AboutThePark()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 11 - 0
InteractiveKiosk/InteractiveKiosk.csproj

@@ -65,6 +65,9 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </ApplicationDefinition>
+    <Compile Include="AboutThePark.xaml.cs">
+      <DependentUpon>AboutThePark.xaml</DependentUpon>
+    </Compile>
     <Compile Include="AttractionInPlace.cs">
       <DependentUpon>DataBase.tt</DependentUpon>
     </Compile>
@@ -127,6 +130,10 @@
     <Compile Include="TypeOfConstructions.cs">
       <DependentUpon>DataBase.tt</DependentUpon>
     </Compile>
+    <Page Include="AboutThePark.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="AuthorizationWindow.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
@@ -171,6 +178,10 @@
     <None Include="App.config" />
   </ItemGroup>
   <ItemGroup>
+    <Resource Include="fofqug0yyom.jpg" />
+    <Resource Include="vdy1jcjdndq.jpg" />
+    <Resource Include="bi22qjdmnmo.jpg" />
+    <Resource Include="aenlkziatka.jpg" />
     <Content Include="DataBase.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <LastGenOutput>DataBase.Context.cs</LastGenOutput>

+ 2 - 2
InteractiveKiosk/MainWindow.xaml

@@ -7,7 +7,7 @@
         mc:Ignorable="d"
         Title="Главная страница" Height="950" Width="700" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="WindowLoaded">
     <Grid>
-        <Button Content="ВОЙТИ" HorizontalAlignment="Left" Margin="625,10,0,0" VerticalAlignment="Top" Width="45" Click="OpenWindow" Height="19" Background="#00000000" FontFamily="Century Gothic" BorderBrush="#00000000"/>
+        <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>
         <Button Content="ДОСТОПРИМЕЧАТЕЛЬНОСТИ" HorizontalAlignment="Left" Margin="291,633,0,0" VerticalAlignment="Top" Width="242" Height="110" FontSize="11" FontFamily="Century Gothic" Background="#00000000">
@@ -16,7 +16,7 @@
         <Button Content="АТТРАКЦИОНЫ" HorizontalAlignment="Left" Margin="538,633,0,0" VerticalAlignment="Top" Width="99" Height="225" FontSize="11" FontFamily="Century Gothic" Background="#00000000">
         </Button>
         <Button Content="АФИША ПАРКА" HorizontalAlignment="Left" Margin="476,342,0,0" VerticalAlignment="Top" Width="194" Height="42" FontFamily="Century Gothic" Background="#00000000"/>
-        <Button Content="ПОДРОБНЕЕ" HorizontalAlignment="Left" Margin="264,260,0,0" VerticalAlignment="Top" Width="180" Height="40" FontFamily="Century Gothic" Background="#00000000"/>
+        <Button Content="ПОДРОБНЕЕ" HorizontalAlignment="Left" Margin="264,260,0,0" VerticalAlignment="Top" Width="180" Height="40" FontFamily="Century Gothic" Background="#00000000" Click="More"/>
         <Label Name="date" HorizontalAlignment="Left" Margin="132,360,0,0" VerticalAlignment="Top" Height="24" Width="98" FontFamily="Century Gothic" FontSize="11"/>
         <Label Name="time" HorizontalAlignment="Left" Margin="46,342,0,0" VerticalAlignment="Top" Height="42" Width="86" FontSize="30" FontFamily="Century Gothic"/>
     </Grid>

+ 16 - 1
InteractiveKiosk/MainWindow.xaml.cs

@@ -26,7 +26,7 @@ namespace InteractiveKiosk
             InitializeComponent();
         }
 
-        private void OpenWindow(object sender, RoutedEventArgs e)
+        private void Authorization(object sender, RoutedEventArgs e)
         {
 
             this.Opacity = 0.5;
@@ -49,5 +49,20 @@ namespace InteractiveKiosk
             time.Content = DateTime.Now.ToString("HH:mm");
 
         }
+
+        private void More(object sender, RoutedEventArgs e)
+        {
+            this.Opacity = 0.5;
+            this.Effect = new BlurEffect();
+            AboutThePark atp = new AboutThePark()
+            {
+                Owner = this,
+                ShowInTaskbar = false,
+                Topmost = true
+            };
+            atp.ShowDialog();
+            this.Opacity = 1;
+            this.Effect = null;
+        }
     }
 }

binární
InteractiveKiosk/aenlkziatka.jpg


binární
InteractiveKiosk/bi22qjdmnmo.jpg


binární
InteractiveKiosk/fofqug0yyom.jpg


binární
InteractiveKiosk/vdy1jcjdndq.jpg