ClientRoom.xaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Window x:Class="HotelCalifornia.ClientRoom"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  7. xmlns:local="clr-namespace:HotelCalifornia"
  8. mc:Ignorable="d"
  9. Title="ClientRoom" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" Icon="image/h1.png" Loaded="Window_Loaded">
  10. <Grid MouseDown="Grid_MouseDown">
  11. <Grid.Background>
  12. <LinearGradientBrush StartPoint="0.1,0" EndPoint="0.9,1">
  13. <GradientStop Color="#7E42F5" Offset="1" />
  14. <GradientStop Color="#383E7A" Offset="0"/>
  15. </LinearGradientBrush>
  16. </Grid.Background>
  17. <Label Content="Заселение клиентов" Foreground="White" FontSize="35" FontFamily="Century Gothic" HorizontalAlignment="Center" Margin="215,46,215,344.6"/>
  18. <Button
  19. Style="{StaticResource MaterialDesignIconButton}"
  20. ToolTip="Выход из приложения" Margin="742,10,10,391.6" Click="Close">
  21. <materialDesign:PackIcon
  22. Kind="ExitToApp" Foreground="White"/>
  23. </Button>
  24. <Button
  25. Style="{StaticResource MaterialDesignIconButton}"
  26. ToolTip="Вернуться к окну выбора функции" Margin="10,10,742,391.6" Click="Back">
  27. <materialDesign:PackIcon
  28. Kind="Backburger" Foreground="White"/>
  29. </Button>
  30. <TextBlock Name="timetxt" HorizontalAlignment="Center" FontFamily="Century Gothic" Margin="561,115,10,0" TextWrapping="Wrap" Foreground="White" FontSize="22" VerticalAlignment="Top" Height="28" Width="229"/>
  31. <Button Name="WindMin"
  32. Style="{StaticResource MaterialDesignIconButton}"
  33. ToolTip="Свернуть окно" Margin="694,10,58,391.6" Click="WindMin_Click">
  34. <materialDesign:PackIcon
  35. Kind="WindowMinimize" Foreground="White"/>
  36. </Button>
  37. <DataGrid Name="dataclientroom" IsReadOnly="True" HorizontalAlignment="Left" Height="257" Margin="293,158,0,0" BorderThickness="1" BorderBrush="Black" VerticalAlignment="Top" Width="497" SelectionChanged="dataClientRoom_SelectionChanged"/>
  38. <ComboBox Name="roomcombo" Margin="10,158,534,243.6" FontSize="18" FontFamily="Century Gothic" Foreground="White" Style="{StaticResource MaterialDesignFloatingHintComboBox}"
  39. materialDesign:ColorZoneAssist.Mode="Inverted" materialDesign:HintAssist.Hint="Комната" Height="48"/>
  40. <ComboBox Name="clientcombo" Margin="10,224,534,177.6" FontSize="18" FontFamily="Century Gothic" Foreground="White" Style="{StaticResource MaterialDesignFloatingHintComboBox}"
  41. materialDesign:ColorZoneAssist.Mode="Inverted" materialDesign:HintAssist.Hint="Клиент" Height="48"/>
  42. <StackPanel Margin="62,312,589,51.6" Orientation="Horizontal">
  43. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Добавить" Margin="25,0,0,0" Click="Add_Click">
  44. <materialDesign:PackIcon Kind="Add" />
  45. </Button>
  46. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Удалить" Margin="25,0,0,0" Click="Delete_Click">
  47. <materialDesign:PackIcon Kind="Delete" />
  48. </Button>
  49. </StackPanel>
  50. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Обновить" Margin="508,103,244,298.6" Click="Refresh_Click">
  51. <materialDesign:PackIcon Kind="Refresh" />
  52. </Button>
  53. </Grid>
  54. </Window>