12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <Window x:Class="school.winWriteService"
- 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:school"
- mc:Ignorable="d"
- Title="Леарн | Запись на услугу" Height="450" Width="550"
- Icon="\Resource\school_logo.ico">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="5">
- <TextBlock Name="TBHeader" FontSize="20" Style="{StaticResource usuallyTextBlockHeader}" HorizontalAlignment="Left">Запись на услугу</TextBlock>
- </Grid>
- <Grid Grid.Row="1" Margin="5">
- <ScrollViewer VerticalScrollBarVisibility="Auto">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0" Margin="0 5">
- <StackPanel>
- <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Название</TextBlock>
- <TextBlock Name="TBName" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
- <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Описание</TextBlock>
- <TextBlock Name="TBDescription" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
- <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Продолжительность</TextBlock>
- <TextBlock Name="TBTime" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
- <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Цена</TextBlock>
- <StackPanel Orientation="Horizontal">
- <TextBlock Name="TBOldPrice" Text="{Binding oldPrice}" TextDecorations="Strikethrough" Visibility="{Binding discountVisible}" Style="{StaticResource usuallyTextBlock}"/>
- <TextBlock Name="TBPrice" Text="{Binding price}" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1" Margin="0 5">
- <StackPanel>
- <TextBlock Style="{StaticResource usuallyTextBlock}">Дата</TextBlock>
- <DatePicker Name="DPDate" Margin="5" Height="25" Width="230" HorizontalAlignment="Left"></DatePicker>
- <TextBlock Style="{StaticResource usuallyTextBlock}">Время</TextBlock>
- <TextBox Name="TBTimeServ" Tag="Например, 08:00" TextChanged="TBTimeServTextChanged" Margin="5" Width="230" MinHeight="25" Height="25" Style="{StaticResource usuallyTextBlox}"></TextBox>
- <TextBlock Name="TBEndTime" Style="{StaticResource usuallyTextBlock}">Время окончания</TextBlock>
- </StackPanel>
- </Grid>
- <Grid Name="GInfo" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 5">
- <StackPanel>
- <TextBlock FontSize="16" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Left">Сведения для администратора</TextBlock>
- <TextBlock Name="TBnoWrites" Style="{StaticResource usuallyTextBlock}" Visibility="Collapsed">Нет записей</TextBlock>
- <DataGrid Name="DGClientService" AutoGenerateColumns="False" CanUserAddRows="False">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Клиент" Width="*" Binding="{Binding fullName}"></DataGridTextColumn>
- <DataGridTextColumn Header="Дата" Width="Auto" Binding="{Binding date}"></DataGridTextColumn>
- <DataGridTextColumn Header="Время" Width="Auto" Binding="{Binding time}"></DataGridTextColumn>
- </DataGrid.Columns>
- </DataGrid>
- </StackPanel>
- </Grid>
- </Grid>
- </ScrollViewer>
- </Grid>
- <Grid Grid.Row="2" Margin="5">
- <Button Name="BtnWrite" Click="BtnWriteClick" Style="{StaticResource usuallyButtonFill}" HorizontalAlignment="Center">Записаться</Button>
- </Grid>
- </Grid>
- </Window>
|