1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <Page x:Class="SneakersSkakunov.AdminData"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:SneakersSkakunov"
- mc:Ignorable="d"
- d:DesignHeight="720" d:DesignWidth="1080"
- Title="AdminData">
- <Grid Background="#f5f5f5">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- </Grid.RowDefinitions>
- <DataGrid ColumnHeaderStyle="{DynamicResource HeadDefault}" Grid.Row="0" Background="#f5f5f5" x:Name="Data" CanUserAddRows="False" AutoGenerateColumns="False" HorizontalAlignment="Center" RowBackground="#f5f5f5" Foreground="#292929">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Имя" Width="*" Binding="{Binding Path=Name}"/>
- <DataGridTextColumn Header="Фамилия" Width="*" Binding="{Binding Path=Surname}"/>
- <DataGridTextColumn Header="Отчество" Width="*" Binding="{Binding Path=Patronymic}"/>
- <DataGridTextColumn Header="Пол" Width="*" Binding="{Binding Path=Gender.Gender1}"/>
- <DataGridTextColumn Header="Логин" Width="*" Binding="{Binding Path=Login}"/>
- <DataGridTextColumn Header="Дата рождения" Width="*" Binding="{Binding Path=DateBirth , StringFormat=\{0:dd.MM.yyyy\}}"/>
- </DataGrid.Columns>
- </DataGrid>
- <StackPanel Grid.Row="1">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin=" 5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="SortAZ">Сортировка А-Я по фамилии</Button>
- </Border>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin=" 5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="SortZA">Сортировка Я-А по фамилии</Button>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="FindM">Найти М</Button>
- </Border>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="FindW">Найти Ж</Button>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <TextBlock Margin="5" HorizontalAlignment="Center">Введите поиск (по фамилии или имени)</TextBlock>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Height="20" Width="140" Margin="5">
- <TextBox Background="#0000" BorderBrush="#0000" Foreground="#292929" Name="SearchString"/>
- </Border>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Search">Искать</Button>
- </Border>
- <Border BorderThickness="1" CornerRadius="4" BorderBrush="#292929" Width="180" Margin="5">
- <Button Background="#0000" BorderBrush="#0000" Foreground="#292929" Click="Revert" Content="Вернуться"/>
- </Border>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Page>
|