|
@@ -11,7 +11,7 @@
|
|
|
<TextBox Text="{Binding PageUCabinetVM.CurrentUser.User.Name}"/>
|
|
|
<TextBlock Text="Логин"/>
|
|
|
<TextBox Text="{Binding PageUCabinetVM.CurrentUser.Login}"/>
|
|
|
- <CheckBox Content="Изменить пароль" IsChecked="{Binding PageUCabinetVM.ChangePass}"/>
|
|
|
+ <CheckBox Content="Изменить пароль" IsChecked="{Binding PageUCabinetVM.ChangePass}" IsEnabled="{Binding !PageUCabinetVM.ChangePass}"/>
|
|
|
<StackPanel IsVisible="{Binding PageUCabinetVM.ChangePass}">
|
|
|
<TextBlock Text="Введите новый пароль"/>
|
|
|
<TextBox Text="{Binding PageUCabinetVM.CurrentUser.Password,Mode=OneWayToSource}" PasswordChar="•"/>
|
|
@@ -21,7 +21,14 @@
|
|
|
<TextBlock Text="Роль в системе"/>
|
|
|
<TextBlock Text="{Binding PageUCabinetVM.CurrentUser.IdRoleNavigation.Role1}"/>
|
|
|
<TextBlock Text="Пол"/>
|
|
|
- <ComboBox ItemsSource="{Binding PageUCabinetVM.Genders}" SelectedValue="{Binding PageUCabinetVM.CurrentUser.User.IdGenderNavigation.Gender1}"/>
|
|
|
+ <ComboBox ItemsSource="{Binding PageUCabinetVM.Genders}" SelectedValue="{Binding PageUCabinetVM.CurrentUser.User.IdGenderNavigation}">
|
|
|
+ <ComboBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Gender1}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </ComboBox.ItemTemplate>
|
|
|
+ </ComboBox>
|
|
|
+
|
|
|
<TextBlock Text="Дата рождения"/>
|
|
|
<DatePicker SelectedDate="{Binding PageUCabinetVM.DR}"/>
|
|
|
<TextBlock Text="{Binding PageUCabinetVM.Message}"/>
|