ClientZapisWindow.axaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="kuzminIVProjectWorkOnDemo.ClientZapisWindow"
  7. xmlns:vm="using:kuzminIVProjectWorkOnDemo.ViewModels"
  8. x:DataType="vm:ClientZapisWindowViewModel"
  9. Icon="/Assets/school_logo.ico"
  10. Title="Запись клиентов">
  11. <Grid>
  12. <StackPanel>
  13. <TextBlock Text="Запись клиента на услугу" Classes="Header" />
  14. <StackPanel>
  15. <TextBlock Text="Услуга" />
  16. <ComboBox ItemsSource="{Binding ServiceList}" DisplayMemberBinding="{Binding Title}" HorizontalAlignment="Stretch" SelectedValue="{Binding takenService}" >
  17. </ComboBox>
  18. </StackPanel>
  19. <StackPanel>
  20. <TextBlock Text="Длительность в минутах" />
  21. <TextBox IsEnabled="True" Text="{Binding DurationServices}" />
  22. </StackPanel>
  23. <StackPanel>
  24. <TextBlock Text="Клиент" />
  25. <ComboBox ItemsSource="{Binding UsersList}" DisplayMemberBinding="{Binding FIO}" HorizontalAlignment="Stretch" SelectedValue="{Binding takenUser}" >
  26. </ComboBox>
  27. </StackPanel>
  28. <StackPanel>
  29. <TextBlock Text="Дата услуги" />
  30. <DatePicker SelectedDate="{Binding DateOfService}" >
  31. </DatePicker>
  32. </StackPanel>
  33. <StackPanel>
  34. <TextBlock Text="Время начала услуги" />
  35. <TextBox Text="{Binding TimeStart}" />
  36. </StackPanel>
  37. <StackPanel>
  38. <TextBlock Text="Время окончания услуги" />
  39. <TextBox IsEnabled="True" Text="{Binding TimeEnd}" />
  40. </StackPanel>
  41. <TextBlock Margin="10" Text="{Binding MessageForUser}" />
  42. <Button Content="Записать клиента на улсугу" Classes="ButtonTemplate" Command="{Binding SaveData}" />
  43. </StackPanel>
  44. </Grid>
  45. </Window>