123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <Window 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"
- x:Class="kuzminIVProjectWorkOnDemo.ClientZapisWindow"
- xmlns:vm="using:kuzminIVProjectWorkOnDemo.ViewModels"
- x:DataType="vm:ClientZapisWindowViewModel"
- Icon="/Assets/school_logo.ico"
- Title="Запись клиентов">
- <Grid>
- <StackPanel>
- <TextBlock Text="Запись клиента на услугу" Classes="Header" />
- <StackPanel>
- <TextBlock Text="Услуга" />
- <ComboBox ItemsSource="{Binding ServiceList}" DisplayMemberBinding="{Binding Title}" HorizontalAlignment="Stretch" SelectedValue="{Binding takenService}" >
-
- </ComboBox>
-
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Длительность в минутах" />
- <TextBox IsEnabled="True" Text="{Binding DurationServices}" />
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Клиент" />
- <ComboBox ItemsSource="{Binding UsersList}" DisplayMemberBinding="{Binding FIO}" HorizontalAlignment="Stretch" SelectedValue="{Binding takenUser}" >
- </ComboBox>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Дата услуги" />
- <DatePicker SelectedDate="{Binding DateOfService}" >
-
- </DatePicker>
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Время начала услуги" />
- <TextBox Text="{Binding TimeStart}" />
- </StackPanel>
- <StackPanel>
- <TextBlock Text="Время окончания услуги" />
- <TextBox IsEnabled="True" Text="{Binding TimeEnd}" />
- </StackPanel>
-
- <TextBlock Margin="10" Text="{Binding MessageForUser}" />
-
- <Button Content="Записать клиента на улсугу" Classes="ButtonTemplate" Command="{Binding SaveData}" />
- </StackPanel>
- </Grid>
- </Window>
|