|
@@ -0,0 +1,86 @@
|
|
|
|
+<Window x:Class="WpfApp29.RegistrationWindow"
|
|
|
|
+ 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:WpfApp29"
|
|
|
|
+ mc:Ignorable="d"
|
|
|
|
+ Title="RegistrationWindow" Height="600" Width="800">
|
|
|
|
+ <Grid>
|
|
|
|
+ <Grid.Background>
|
|
|
|
+ <ImageBrush ImageSource="/bg.png" Stretch="UniformToFill"/>
|
|
|
|
+ </Grid.Background>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <Border Padding="20" VerticalAlignment="Center" HorizontalAlignment="Center" Background="#E5ECCC74"
|
|
|
|
+ BorderThickness="6" CornerRadius="30" BorderBrush="#FF312B04" Height="480" Grid.RowSpan="2">
|
|
|
|
+ <Grid>
|
|
|
|
+
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
+ <ColumnDefinition Width="130"></ColumnDefinition>
|
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
+
|
|
|
|
+ <!--Надпись "Вход в личный кабинет"-->
|
|
|
|
+ <Label Content="Регистрация аккаунта" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" FontFamily="Copperplate Gothic Bold" Grid.ColumnSpan="2"></Label>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода логина-->
|
|
|
|
+ <Label Content="Логин" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbLogin" Width="200" Height="40" HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center" Grid.Row="1" Grid.Column="1"
|
|
|
|
+ Text="{Binding User.Login}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода пароля-->
|
|
|
|
+ <Label Content="Пароль" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
+ Grid.Row="2" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbPassword" Width="200" Height="40" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
+ Grid.Row="2" Grid.Column="1" Text="{Binding User.Password}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода Фамилии-->
|
|
|
|
+ <Label Content="Фамилия" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbSecondName" Width="200" Height="40" HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center" Grid.Row="3" Grid.Column="1"
|
|
|
|
+ Text="{Binding User.Familiya}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода Имени-->
|
|
|
|
+ <Label Content="Имя" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbFirstName" Width="200" Height="40" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
+ Grid.Row="4" Grid.Column="1"
|
|
|
|
+ Text="{Binding User.Name}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода Отчества-->
|
|
|
|
+ <Label Content="Отчество" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbMiddleName" Width="200" Height="40" HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center" Grid.Row="5" Grid.Column="1"
|
|
|
|
+ Text="{Binding User.Otchestvo}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Поле для ввода Номера Телефона-->
|
|
|
|
+ <Label Content="Номер телефона" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0"></Label>
|
|
|
|
+ <TextBox Name="TbPhoneNumber" Width="200" Height="40" HorizontalAlignment="Center"
|
|
|
|
+ VerticalAlignment="Center" Grid.Row="6" Grid.Column="1"
|
|
|
|
+ Text="{Binding User.Phone}"></TextBox>
|
|
|
|
+
|
|
|
|
+ <!--Кнопка регистрации-->
|
|
|
|
+ <Button Width="220" Height="40" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
+ Content="Зарегистрироваться" BorderBrush="#FF5A5205"
|
|
|
|
+ Grid.Row="7" Grid.Column="1" Command="{Binding CommandRegister}"></Button>
|
|
|
|
+
|
|
|
|
+ <!--Кнопка отмены регистрации-->
|
|
|
|
+ <Button Width="110" Height="40" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
+ Content="Отмена" BorderBrush="#FF5A5205"
|
|
|
|
+ Grid.Row="7" Grid.Column="0" Command="{Binding CommandGoLogin}"></Button>
|
|
|
|
+
|
|
|
|
+ </Grid>
|
|
|
|
+ </Border>
|
|
|
|
+ </Grid>
|
|
|
|
+</Window>
|