Browse Source

справка для пользователя

Smerdova Liza 6 months ago
parent
commit
495cf52b40

+ 2 - 1
PDK_Concert/Pages/MainPage.xaml

@@ -15,10 +15,11 @@
         </Grid.RowDefinitions>
         <Grid.ColumnDefinitions>
             <ColumnDefinition Width="300"/>
-            <ColumnDefinition Width="50"/>
+            <ColumnDefinition Width="60"/>
             <ColumnDefinition Width="*"/>
             <ColumnDefinition Width="60"/>
         </Grid.ColumnDefinitions>
+        <Image MouseDown="QV_MouseDown" Source="/img/imageQv.png" HorizontalAlignment="Center" VerticalAlignment="Center" Name="QV" Grid.Column="1" Height="40"/>
         <Image MouseDown="back_MouseDown" Source="/img/excit.png" Grid.Column="3" Name="back" HorizontalAlignment="Center" VerticalAlignment="Center"/>
         <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="2">
             <TextBlock VerticalAlignment="Center" Name="fio" FontSize="20" Style="{StaticResource Title}" Margin="0 0 20 0"/>

+ 6 - 0
PDK_Concert/Pages/MainPage.xaml.cs

@@ -68,5 +68,11 @@ namespace PDK_Concert.Pages
         {
             FrameClass.frame.Navigate(new AuthorizationPage());
         }
+
+        private void QV_MouseDown(object sender, MouseButtonEventArgs e)
+        {
+            QuestionWindow questionWindow = new QuestionWindow();
+            questionWindow.ShowDialog();
+        }
     }
 }

+ 25 - 0
PDK_Concert/Pages/QuestionWindow.xaml

@@ -0,0 +1,25 @@
+<Window x:Class="PDK_Concert.Pages.QuestionWindow"
+        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:PDK_Concert.Pages"
+        mc:Ignorable="d"
+        Background="#383229"
+        MinHeight="450"
+        MinWidth="400"
+        MaxHeight="450"
+        MaxWidth="400"
+        Title="QuestionWindow" Height="450" Width="400">
+    <Grid>
+        <StackPanel Margin="10">
+            <TextBlock Style="{StaticResource Title}" Text="Руководство" HorizontalAlignment="Center" Margin="10"/>
+            <TextBlock FontSize="20" Foreground="White" TextWrapping="Wrap" MaxWidth="400">
+                - Для более детального рассмотрения интересующего элемента списка, необходимо нажать на него правой кнопкой мыши.
+            </TextBlock>
+            <TextBlock FontSize="20" Foreground="White" TextWrapping="Wrap" MaxWidth="400">
+                - При выполнении некоторых действий, например, добовления номера в концертную программу, появляются информационные блоки. При значке "Ошибка" необходимо изучить описанную проблему и выполнить соответствующие действия.
+            </TextBlock>
+        </StackPanel>
+    </Grid>
+</Window>

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

+ 3 - 4
PDK_Concert/Pages/RehearsalPage.xaml

@@ -12,14 +12,14 @@
         <Grid.RowDefinitions>
             <RowDefinition Height="60"/>
             <RowDefinition Height="*"/>
+            <RowDefinition Height="60"/>
         </Grid.RowDefinitions>
         <Grid.ColumnDefinitions>
             <ColumnDefinition Width="*"/>
             <ColumnDefinition Width="*"/>
         </Grid.ColumnDefinitions>
         <TextBlock Text="{Binding RehearsalDate1, StringFormat={}dd.MM.yyyy}" Style="{StaticResource Title}" HorizontalAlignment="Center" FontWeight="Bold"/>
-        <StackPanel Grid.Row="1">
-            <ListView Name="listRehearsal" FontSize="20">
+        <ListView Name="listRehearsal" FontSize="20" Grid.Row="1">
                 <ListView.View>
                     <GridView>
                         <GridViewColumn Header="Время">
@@ -39,8 +39,7 @@
                     </GridView>
                 </ListView.View>
             </ListView>
-            <TextBlock Text="Репетиций в этот день нет" Style="{StaticResource Title}" Name="not" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"/>
-        </StackPanel>
+        <TextBlock Text="Репетиций в этот день нет" Style="{StaticResource Title}" Name="not" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed" Grid.Row="1"/>
         <StackPanel Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
             <TextBlock Style="{StaticResource Title}" Text="Добавить время репетиции" Margin="0 0 0 50" HorizontalAlignment="Center"/>
             <GroupBox Width="300" Header="Время" ToolTip="(00:00-00:00)">

+ 2 - 0
PDK_Concert/Pages/UpdateNumberWindow.xaml

@@ -8,6 +8,8 @@
         Background="#383229"
         MinHeight="450"
         MinWidth="900"
+        MaxHeight="450"
+        MaxWidth="900"
         Title="UpdateNumberWindow" Height="450" Width="900">
     <Grid>
         <Grid.ColumnDefinitions>

+ 10 - 0
PDK_Concert/RDK_Concert.csproj

@@ -115,6 +115,9 @@
     <Compile Include="Pages\ProfilePage.xaml.cs">
       <DependentUpon>ProfilePage.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Pages\QuestionWindow.xaml.cs">
+      <DependentUpon>QuestionWindow.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Pages\RehearsalPage.xaml.cs">
       <DependentUpon>RehearsalPage.xaml</DependentUpon>
     </Compile>
@@ -210,6 +213,10 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Pages\QuestionWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="Pages\RehearsalPage.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
@@ -295,6 +302,9 @@
     <Resource Include="img\excit.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Resource>
+    <Resource Include="img\imageQv.png">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Resource>
     <Content Include="ModelBD.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
       <LastGenOutput>ModelBD.Context.cs</LastGenOutput>

BIN
PDK_Concert/img/imageQv.png