Client.xaml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <Window x:Class="HotelCalifornia.Client"
  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="Client" 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="148,54,148,336.6"/>
  18. <StackPanel Margin="6,134,547,91.6" Orientation="Vertical">
  19. <TextBox Name="familiatxt" Margin="10,0,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="15"
  20. materialDesign:HintAssist.Hint="Фамилия клиента" TextChanged="familiatxt_TextChanged"/>
  21. <TextBox Name="nametxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="10"
  22. materialDesign:HintAssist.Hint="Имя клиента" TextChanged="nametxt_TextChanged"/>
  23. <TextBox Name="otchestvotxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="15"
  24. materialDesign:HintAssist.Hint="Отчество клиента" TextChanged="otchestvotxt_TextChanged"/>
  25. <TextBox Name="telephonetxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="11"
  26. materialDesign:HintAssist.Hint="Телефон клиента" TextChanged="telephonetxt_TextChanged"/>
  27. <TextBox Name="passporttxt" Margin="10,15,0,0" FontSize="18" FontFamily="Century Gothic" Foreground="White" MaxLength="10"
  28. materialDesign:HintAssist.Hint="Серия и номер паспорта" materialDesign:HintAssist.HelperText="Без пробелов" TextChanged="passporttxt_TextChanged"/>
  29. </StackPanel>
  30. <StackPanel Margin="10,364,537,-0.4" Orientation="Horizontal">
  31. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Добавить" Margin="25,0,0,0" Click="Add_Click">
  32. <materialDesign:PackIcon Kind="Add" />
  33. </Button>
  34. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Редактировать" Margin="25,0,0,0" Click="Update_Click">
  35. <materialDesign:PackIcon Kind="Edit" />
  36. </Button>
  37. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Удалить" Margin="25,0,0,0" Click="Delete_Click">
  38. <materialDesign:PackIcon Kind="Delete" />
  39. </Button>
  40. </StackPanel>
  41. <DataGrid Name="dataclient" IsReadOnly="True" HorizontalAlignment="Left" Height="257" Margin="290,134,0,0" VerticalAlignment="Top" Width="497" SelectionChanged="dataclient_SelectionChanged" />
  42. <Button Style="{StaticResource MaterialDesignIconButton}" ToolTip="Вернуться к окну выбора функции" Margin="10,10,742,391.6" Click="Back">
  43. <materialDesign:PackIcon Kind="Backburger" Foreground="White"/>
  44. </Button>
  45. <Button Style="{StaticResource MaterialDesignIconButton}" ToolTip="Выход из приложения" Margin="742,10,10,391.6" Click="Close">
  46. <materialDesign:PackIcon Kind="ExitToApp" Foreground="White"/>
  47. </Button>
  48. <Button Name="WindMin"
  49. Style="{StaticResource MaterialDesignIconButton}"
  50. ToolTip="Свернуть окно" Margin="694,10,58,391.6" Click="WindMin_Click">
  51. <materialDesign:PackIcon
  52. Kind="WindowMinimize" Foreground="White"/>
  53. </Button>
  54. <TextBlock Name="timetxt" HorizontalAlignment="Center" FontFamily="Century Gothic" Margin="561,87,10,0" TextWrapping="Wrap" Foreground="White" FontSize="22" VerticalAlignment="Top" Height="28" Width="229"/>
  55. <TextBlock Name="idclienttxt" Visibility="Hidden"/>
  56. <Button Style="{StaticResource MaterialDesignIconButton}" Foreground="White" ToolTip="Обновить" Margin="508,76,244,325.6" Click="Refresh_Click">
  57. <materialDesign:PackIcon Kind="Refresh" />
  58. </Button>
  59. <TextBlock Name="idadmintxt" Visibility="Hidden"/>
  60. </Grid>
  61. </Window>