123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <UserControl xmlns="https://github.com/avaloniaui"
- 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"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- MinWidth="800" MinHeight="450"
- x:Class="N11_1.Views.TeacherAdd"
- xmlns:vm="using:N11_1.ViewModels"
- x:DataType="vm:MainWindowViewModel">
- <ScrollViewer>
- <Grid Margin="10 0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Button Command="{Binding BackToHome}" HorizontalAlignment="Left">Назад</Button>
- <Button Command="{Binding AddTeacher}" HorizontalAlignment="Right">Добавить</Button>
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical" Margin="0 10">
- <TextBlock Classes="h1">Личная информация:</TextBlock>
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical" Margin="5">
- <TextBlock>Фамилия</TextBlock>
- <TextBox Text="{Binding TeacherAdd.Surname}" Watermark="Введите фамилию"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="5">
- <TextBlock>Имя</TextBlock>
- <TextBox Text="{Binding TeacherAdd.Name}" Watermark="Введите имя"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="5">
- <TextBlock>Отчество</TextBlock>
- <TextBox Text="{Binding TeacherAdd.Patronomic}" Watermark="Введите отчество"></TextBox>
- </StackPanel>
- </StackPanel>
- <TextBlock Margin="5">Пол</TextBlock>
- <StackPanel Orientation="Horizontal" Margin="5">
- <RadioButton IsChecked="{Binding TeacherAdd.GenderM}">Мужской</RadioButton>
- <RadioButton IsChecked="{Binding TeacherAdd.GenderG}" Margin="10 0">Женский</RadioButton>
- </StackPanel>
- <TextBlock Margin="5">Дата рождения</TextBlock>
- <DatePicker SelectedDate="{Binding TeacherAdd.Dateofbirthd}"></DatePicker>
- <TextBlock Margin="5">Стаж работы</TextBlock>
- <TextBox Text="{Binding TeacherAdd.WorkExpensive}" Watermark="Введите стаж работы в месяцах" Width="400" HorizontalAlignment="Left" Margin="5"></TextBox>
- </StackPanel>
- <StackPanel Grid.Row="2" Margin="0 10">
- <TextBlock Classes="h1">Контактная информация:</TextBlock>
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical" Margin="5">
- <TextBlock>Почта</TextBlock>
- <TextBox Text="{Binding TeacherAdd.Mail}" Watermark="Введите email"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="5">
- <TextBlock>Номер телефона</TextBlock>
- <TextBox Text="{Binding TeacherAdd.Phone}" Watermark="Введите номер телефона"></TextBox>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="3" Margin="0 10">
- <TextBlock Classes="h1">Преподаваемые предметы:</TextBlock>
- <ComboBox ItemsSource="{Binding TeacherAdd.Lesson}"
- SelectedValue="{Binding TeacherAdd.SelectedValueLesson}"></ComboBox>
- <ListBox ItemsSource="{Binding TeacherAdd.SelectedLesson}"
- SelectedValue="{Binding TeacherAdd.DeleteValueLesson}"></ListBox>
- </StackPanel>
- </Grid>
- </ScrollViewer>
- </UserControl>
|