|
@@ -19,12 +19,12 @@
|
|
|
|
|
|
<StackPanel HorizontalAlignment="Center" >
|
|
|
<TextBlock FontWeight="Bold" Margin="40 20 0 0">Редактор</TextBlock>
|
|
|
- <TextBox Watermark="Фамилия" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
- <TextBox Watermark="Имя" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
- <TextBox Watermark="Отчество" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
- <TextBox Watermark="Почта" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
- <TextBox Watermark="Телефон" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
- <TextBox Watermark="Стаж" Width="300" Margin="0 10 0 0"></TextBox>
|
|
|
+ <TextBox Watermark="Фамилия" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.LastName}"></TextBox>
|
|
|
+ <TextBox Watermark="Имя" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.FirstName}"></TextBox>
|
|
|
+ <TextBox Watermark="Отчество" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.PatronymicName}"></TextBox>
|
|
|
+ <TextBox Watermark="Почта" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.Email}"></TextBox>
|
|
|
+ <TextBox Watermark="Телефон" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.Phone}"></TextBox>
|
|
|
+ <TextBox Watermark="Стаж" Width="300" Margin="0 10 0 0" Text="{Binding NewTeacher.Experience}"></TextBox>
|
|
|
<DatePicker SelectedDate="{Binding NewTeacher.DateOfBirth, Converter={StaticResource myConverter}} "></DatePicker>
|
|
|
<ComboBox PlaceholderText="Выберите пол" ItemsSource="{Binding Genders}" Width="300" Margin="0 10 0 0" SelectedItem="{Binding NewTeacher.Gender}">
|
|
|
<ComboBox.ItemTemplate>
|
|
@@ -72,7 +72,7 @@
|
|
|
</DataTemplate>
|
|
|
</ListBox.ItemTemplate>
|
|
|
</ListBox>
|
|
|
- <Button Command="{Binding AddTeacher}">Добавить</Button>
|
|
|
+ <Button Command="{Binding AddTeacher}" Content="{Binding TextButton}"></Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
</Border>
|