|
@@ -17,42 +17,59 @@
|
|
|
<RowDefinition Height="60"/>
|
|
|
<RowDefinition Height="60"/>
|
|
|
</Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
- <StackPanel HorizontalAlignment="Center" Margin="10" Grid.Row="0">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Margin="10" Grid.Row="0" Grid.Column="1">
|
|
|
<TextBlock Text="Личный кабинет" HorizontalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="1" Margin="5" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="Фамилия"/>
|
|
|
- <TextBox Text="{Binding CurrentUser.Surname}" Width="200" HorizontalAlignment="Left"/>
|
|
|
- </StackPanel>
|
|
|
+ <StackPanel Grid.Row="1" Grid.Column="0" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="Фамилия"/>
|
|
|
+ <TextBox Text="{Binding CurrentUser.Surname}" Width="200" HorizontalAlignment="Left"/>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
+ <StackPanel Grid.Row="1" Grid.Column="1" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="Имя"/>
|
|
|
+ <TextBox Text="{Binding CurrentUser.Firstname}" Width="200" HorizontalAlignment="Left"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Grid.Row="1" Grid.Column="2" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="Отчество"/>
|
|
|
+ <TextBox Text="{Binding CurrentUser.Patronymic}" Width="200" HorizontalAlignment="Left"/>
|
|
|
+ </StackPanel>
|
|
|
<StackPanel Grid.Row="2" Margin="5" HorizontalAlignment="Center">
|
|
|
<TextBlock Text="Логин"/>
|
|
|
<TextBox Text="{Binding CurrentUser.Login}" Width="200" HorizontalAlignment="Left"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="3" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <StackPanel Grid.Row="2" Grid.Column="2" Margin="5" HorizontalAlignment="Center">
|
|
|
<TextBlock Text="Пол"/>
|
|
|
- <ComboBox ItemsSource="{Binding Genders}" SelectedItem="{Binding GenderIndex}" Width="200" HorizontalAlignment="Left"/>
|
|
|
+ <ComboBox ItemsSource="{Binding Genders}"
|
|
|
+ SelectedItem="{Binding GenderIndex}"
|
|
|
+ Width="200" HorizontalAlignment="Left"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="4" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <StackPanel Grid.Row="2" Grid.Column="1" Margin="5" HorizontalAlignment="Center">
|
|
|
<TextBlock Text="Дата рождения"/>
|
|
|
<DatePicker SelectedDate="{Binding DR}"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="5" Margin="5" HorizontalAlignment="Center">
|
|
|
+ <StackPanel Grid.Row="3" Margin="5" HorizontalAlignment="Left">
|
|
|
<TextBlock Text="Роль в системе:"/>
|
|
|
<TextBlock Text="{Binding CurrentUser.RoleNavigation.RoleName}"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="6" HorizontalAlignment="Center" Margin="5">
|
|
|
+ <StackPanel Grid.Row="6" Grid.ColumnSpan="3" HorizontalAlignment="Center" Margin="5">
|
|
|
<Button Content="Сохранить изменения" Command="{Binding SaveData}"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="7" HorizontalAlignment="Center" Margin="5">
|
|
|
+ <StackPanel Grid.Row="7" Grid.ColumnSpan="3" HorizontalAlignment="Center" Margin="5">
|
|
|
<Button Content="Выйти" Command="{Binding Exit}"/>
|
|
|
</StackPanel>
|
|
|
</Grid>
|